Part Number Hot Search : 
CXA1792S 11105 F7ADG10 6670AL MP201701 FD391 00160 ML9059E
Product Description
Full Text Search
 

To Download W83977AF Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  winbond i/o w83977f & W83977AF
w83977f/ af data sheet revision history pages dates versio n versio n on web main contents 1 n.a. 01/20/97 0.50 first publication 2 2,3,6,8,9,10, 122,126,128- 132,134,138,168 01/27/97 0.51 spec. correction; typo correction 3 117-125,127 01/30/97 0.52 register correction; pages rearranging. 4 9,10,120-122 02/13/97 0.53 spec. correction; typo correction 5 127,135,136,169 03/03/97 0.54 spec. correction; typo correction 6 viii,ix,166-169 05/24/97 0.55 add section 15.0; pages rearranging. 7 p118 7/15/97 0.56 cr24: pin 22 pin1 8 53,54,58,61,62, 63,65,124,125 11/17/97 0.57 register correction 9 1,3,11,52,91,105, 109,110,111,113, 114,115,119,124, 130,131,148 03/10/97 0.58 typo correction and data calibrated 10 please note that all data and specifications are subject to change without notice. all the trade marks of products and companies mentioned in this data sheet belong to their respective owners. life support applications these products are not designed for use in life support appliances, devices, or systems where malfunction of these products can reasonably be expected to result in personal injury. winbond customers using or selling these products for use in such applications do so
at their own risk and agree to fully indemnify winbond for any damages resulting from such improper use or sales.
w83977f/ W83977AF p r e l i m i n a r y publication release date:march 1998 - i - preliminary revision 0.58 table of contents 1. pin description ................................ ................................ ................................ ........ 6 1.1 host interface ................................ ................................ ................................ ................................ .... 6 1.2 advanced power management ................................ ................................ ................................ .... 8 1.3 serial port interface ................................ ................................ ................................ ...................... 9 1.4 infrared interface ................................ ................................ ................................ ......................... 10 1.5 multi-mode parallel port ................................ ................................ ................................ .......... 11 1.6 fdc interface ................................ ................................ ................................ ................................ .... 16 1.7 kbc interface ................................ ................................ ................................ ................................ .... 17 1.8 rtc interface ................................ ................................ ................................ ................................ .... 17 1.9 power pins ................................ ................................ ................................ ................................ ........... 17 2. fdc functional description ................................ ................................ ........... 18 2.1 w83977f/ af fdc ................................ ................................ ................................ ................................ ... 18 2.1.1 at interface ................................ ................................ ................................ ................................ ........ 18 2.1.2 fifo (data) ................................ ................................ ................................ ................................ ....... 18 2.1.3 data separator ................................ ................................ ................................ ................................ ... 19 2.1.4 write precompensation ................................ ................................ ................................ ....................... 19 2.1.5 perpendicular recording mode ................................ ................................ ................................ .......... 19 2.1.6 fdc core ................................ ................................ ................................ ................................ ........... 20 2.1.7 fdc commands ................................ ................................ ................................ ................................ . 20 2.2 register descriptions ................................ ................................ ................................ .................... 31 2.2.1 status register a (sa register) (read base address + 0) ................................ ................................ .... 31 2.2.2 status register b (sb register) (read base address + 1) ................................ ................................ .... 33 2.2.3 digital output register (do register) (write base address + 2) ................................ ......................... 35 2.2.4 tape drive register (td register) (read base address + 3) ................................ ............................... 35 2.2.5 main status register (ms register) (read base address + 4) ................................ .............................. 36 2.2.6 data rate register (dr register) (write base address + 4) ................................ ................................ 36 2.2.7 fifo register (r/w base address + 5) ................................ ................................ ............................... 38 2.2.8 digital input register (di register) (read base address + 7) ................................ ............................. 40
w83977f/ W83977AF p r e l i m i n a r y publication release date:march 1998 - ii - preliminary revision 0.58 2.2.9 configuration control register (cc register) (write base address + 7) ................................ ............. 42 3. uart port ................................ ................................ ................................ .................. 43 3.1 universal asynchronous receiver/transmitter (uart a, uart b) ............................ 43 3.2 register address ................................ ................................ ................................ ............................. 43 3.2.1 uart control register (ucr) (read/write) ................................ ................................ ....................... 43 3.2.2 uart status register (usr) (read/write) ................................ ................................ .......................... 45 3.2.3 handshake control register (hcr) (read/write) ................................ ................................ ............... 46 3.2.4 handshake status register (hsr) (read/write) ................................ ................................ .................. 47 3.2.5 uart fifo control register (ufr) (write only) ................................ ................................ ............... 48 3.2.6 interrupt status register (isr) (read only) ................................ ................................ ......................... 48 3.2.7 interrupt control register (icr) (read/write) ................................ ................................ .................... 49 3.2.8 programmable baud generator (bll/bhl) (read/write) ................................ ................................ ... 50 3.2.9 user-defined register (udr) (read/write) ................................ ................................ ......................... 50 4. infrared (ir) port ................................ ................................ ................................ . 52 4.1 ir register description ................................ ................................ ................................ ................. 52 4.2 set0-legacy/advanced ir control and status registers ................................ ............. 53 4.2.1 set0.reg0 - receiver/transmitter buffer registers (rbr/tbr) (read/write) ................................ ...... 53 4.2.2 set0.reg1 - interrupt control register (icr) ................................ ................................ ...................... 53 4.2.3 set0.reg2 - interrupt status register/ir fifo control register (isr/ufr) ................................ ........ 54 4.2.4 set0.reg3 - ir control register/set select register (ucr/ssr): ................................ ........................ 57 4.2.5 set0.reg4 - handshake control register (hcr) ................................ ................................ ................. 58 4.2.6 set0.reg5 - ir status register (usr) ................................ ................................ ................................ .. 59 4.2.7 set0.reg6 - reserved ................................ ................................ ................................ .......................... 59 4.2.8 set0.reg7 - user defined register (udr/audr) ................................ ................................ ............... 59 4.3 set1 - legacy baud rate divisor register ................................ ................................ ............ 60 4.3.1 set1.reg0~1 - baud rate divisor latch (bll/bhl) ................................ ................................ ........... 61 4.3.2 set1.reg 2~7 ................................ ................................ ................................ ................................ ...... 61 4.4 set2 - interrupt status or ir fifo control register (isr/ufr) ................................ ...... 61 4.4.1 reg0, 1 - advanced baud rate divisor latch (abll/abhl) ................................ .............................. 61 4.4.2 reg2 - advanced ir control register 1 (adcr1) ................................ ................................ ............... 61 4.4.3 reg3 - sets select register (ssr) ................................ ................................ ................................ ........ 62 4.4.4 reg4 - advanced ir control register 2 (adcr2) ................................ ................................ ............... 62
w83977f/ W83977AF p r e l i m i n a r y publication release date:march 1998 - iii - preliminary revision 0.58 4.4.5 reg6 - transmitter fifo depth (txfdth) (read only) ................................ ................................ .... 64 4.4.6 reg7 - receiver fifo depth (rxfdth) (read only) ................................ ................................ ......... 64 4.5 set3 - version id and mapped control registers ................................ ............................... 64 4.5.1 reg0 - advanced ir id (auid) ................................ ................................ ................................ .......... 64 4.5.2 reg1 - mapped ir control register (mp_ucr) ................................ ................................ ................. 64 4.5.3 reg2 - mapped ir fifo control register (mp_ufr) ................................ ................................ ........ 65 4.5.4 reg3 - sets select register (ssr) ................................ ................................ ................................ ........ 65 4.6 set4 - tx/rx/timer counter registers and ir control registers. .............................. 65 4.6.1 set4.reg0, 1 - timer value register (tmrl/tmrh) ................................ ................................ ........... 65 4.6.2 set4.reg2 - infrared mode select (ir_msl) ................................ ................................ ....................... 65 4.6.3 set4.reg3 - set select register (ssr) ................................ ................................ ................................ .. 66 4.6.4 set4.reg4, 5 - transmitter frame length (tfrll/tfrlh) ................................ ................................ 66 4.6.5 set4.reg6, 7 - receiver frame length (rfrll/rfrlh) ................................ ................................ .... 66 4.7 set 5 - flow control and ir control and frame status fifo registers ................. 6 7 4.7.1 set5.reg0, 1 - flow control baud rate divisor latch register (fcdll/ fcdhl) ............................. 67 4.7.2 set5.reg2 - flow control mode operation (fc_md) ................................ ................................ ......... 67 4.7.3 set5.reg3 - sets select register (ssr) ................................ ................................ ................................ 68 4.7.4 set5.reg4 - infrared configure register 1 (ircfg1) ................................ ................................ .......... 68 4.7.5 set5.reg5 - frame status fifo register (fs_fo) ................................ ................................ .............. 68 4.7.6 set5.reg6, 7 - receiver frame length fifo (rflfl/rflfh) or lost frame number (lst_nu) ...... 69 4.8 set6 - ir physical layer control registers ................................ ................................ ......... 69 4.8.1 set6.reg0 - infrared configure register 2 (ir_cfg2) ................................ ................................ ........ 70 4.8.2 set6.reg1 - mir (1.152m/0.576m bps) pulse width ................................ ................................ ........... 70 4.8.3 set6.reg2 - sir pulse width ................................ ................................ ................................ ............... 71 4.8.4 set6.reg3 - set select register ................................ ................................ ................................ ........... 71 4.8.5 set6.reg4 - high speed infrared beginning flag number (hir_fnu) ................................ .............. 71 4.9 set7 - remote control and ir module selection registers ................................ ......... 72 4.9.1 set7.reg0 - remote infrared receiver control (rir_rxc) ................................ ................................ . 72 4.9.2 set7.reg1 - remote infrared transmitter control (rir_txc) ................................ ............................. 74 4.9.3 set7.reg2 - remote infrared config register (rir_cfg) ................................ ................................ ... 74 4.9.4 set7.reg3 - sets select register (ssr) ................................ ................................ ................................ 75 4.9.5 set7.reg4 - infrared module (front end) select 1 (irm_sl1) ................................ ............................ 76 4.9.6 set7.reg5 - infrared module (front end) select 2 (irm_sl2) ................................ ............................ 76
w83977f/ W83977AF p r e l i m i n a r y publication release date:march 1998 - iv - preliminary revision 0.58 4.9.7 set7.reg6 - infrared module (front end) select 3 (irm_sl3) ................................ ............................ 76 4.9.8 set7.reg7 - infrared module control register (irm_cr) ................................ ................................ ... 77 5. parallel port ................................ ................................ ................................ ........ 78 5.1 printer interface logic ................................ ................................ ................................ ............... 78 5.2 enhanced parallel port (epp) ................................ ................................ ................................ .... 79 5.2.1 data swapper ................................ ................................ ................................ ................................ ..... 79 5.2.2 printer status buffer ................................ ................................ ................................ ........................... 80 5.2.3 printer control latch and printer control swapper ................................ ................................ ........... 80 5.2.4 epp address port ................................ ................................ ................................ ............................... 81 5.2.5 epp data port 0-3 ................................ ................................ ................................ ............................. 82 5.2.6 bit map of parallel port and epp registers ................................ ................................ ....................... 82 5.2.7 epp pin descriptions ................................ ................................ ................................ ......................... 83 5.2.8 epp operation ................................ ................................ ................................ ................................ ... 83 5.3 extended capabilities parallel (ecp) port ................................ ................................ ......... 84 5.3.1 ecp register and mode definitions ................................ ................................ ................................ ... 84 5.3.2 data and ecpafifo port ................................ ................................ ................................ ...................... 85 5.3.3 device status register (dsr) ................................ ................................ ................................ .............. 85 5.3.4 device control register (dcr) ................................ ................................ ................................ .......... 86 5.3.5 cfifo (parallel port data fifo) mode = 010 ................................ ................................ ..................... 87 5.3.6 ecpdfifo (ecp data fifo) mode = 011 ................................ ................................ ............................ 87 5.3.7 tfifo (test fifo mode) mode = 110 ................................ ................................ ................................ .. 87 5.3.8 cnfga (configuration register a) mode = 111 ................................ ................................ .................... 87 5.3.9 cnfgb (configuration register b) mode = 111 ................................ ................................ .................... 87 5.3.10 ecr (extended control register) mode = all ................................ ................................ ..................... 88 5.3.11 bit map of ecp port registers ................................ ................................ ................................ ......... 89 5.3.12 ecp pin descriptions ................................ ................................ ................................ ....................... 90 5.3.13 ecp operation ................................ ................................ ................................ ................................ . 91 5.3.14 fifo operation ................................ ................................ ................................ ................................ 91 5.3.15 dma transfers ................................ ................................ ................................ ................................ . 92 5.3.16 programmed i/o (non-dma) mode ................................ ................................ ................................ 92 5.4 extension fdd mode (extfdd) ................................ ................................ ................................ ..... 92 5.5 extension 2fdd mode (ext2fdd) ................................ ................................ ................................ . 92 6. real-time clock (rtc) and "on-now" control ................................ .... 93
w83977f/ W83977AF p r e l i m i n a r y publication release date:march 1998 - v - preliminary revision 0.58 6.1 register address map ................................ ................................ ................................ .................... 93 6.2 update cycle ................................ ................................ ................................ ................................ ..... 95 6.3 registers ................................ ................................ ................................ ................................ ............. 96 6.3.1 register 0ah ................................ ................................ ................................ ................................ ....... 96 6.3.2 register 0bh (read/write) ................................ ................................ ................................ .................. 98 6.3.3 register 0ch (read only) ................................ ................................ ................................ .................... 99 6.3.4 register d (read only) ................................ ................................ ................................ ....................... 99 6.4 "on-now" control ................................ ................................ ................................ .......................... 100 6.5 power-on events ................................ ................................ ................................ ............................ 100 6.6 power-off events ................................ ................................ ................................ .......................... 100 6.7 registers ................................ ................................ ................................ ................................ ........... 101 6.7.1 "on-now" register 1 (bank2 register 49h) ................................ ................................ ..................... 101 6.7.2 "on-now"  register 2 (bank2 register 4ah) ................................ ................................ .................... 102 6.7.3 "on-now" register 3 (bank2 register 4bh) ................................ ................................ ...................... 103 6.7.4 "on-now" register 4 (bank2 register 4ch) ................................ ................................ ...................... 104 7. keyboard controller ................................ ................................ .................... 105 7.1 output buffer ................................ ................................ ................................ ................................ .. 10 6 7.2 input buffer ................................ ................................ ................................ ................................ ..... 106 7.3 status register ................................ ................................ ................................ .............................. 106 7.4 commands ................................ ................................ ................................ ................................ ......... 107 7.5 hardware gatea20/keyboard reset control logic ................................ ...................... 109 7.5.1 kb control register (logic device 5, cr-f0) ................................ ................................ .................. 109 7.5.2 port 92 control register (default value = 0x24) ................................ ................................ .............. 109 8. general purpose i/o ................................ ................................ ........................... 110 8.1 basic i/o functions ................................ ................................ ................................ ........................ 111 8.2 alternate i/o functions ................................ ................................ ................................ ............. 113 8.2.1 interrupt steering ................................ ................................ ................................ ............................. 113 8.2.2 watch dog timer output ................................ ................................ ................................ .................. 113 8.2.3 power led ................................ ................................ ................................ ................................ ....... 114 8.2.4 general purpose address decoder ................................ ................................ ................................ ... 114 8.2.5 general purpose write strobe ................................ ................................ ................................ .......... 114 9. plug and play configuration ................................ ................................ ..... 114 9.1 comply pnp ................................ ................................ ................................ ................................ ........ 1 15
w83977f/ W83977AF p r e l i m i n a r y publication release date:march 1998 - vi - preliminary revision 0.58 9.1.1 wait for key state ................................ ................................ ................................ ............................ 115 9.1.2 sleep state ................................ ................................ ................................ ................................ ........ 115 9.1.3 isolation state ................................ ................................ ................................ ................................ .. 115 9.1.4 configure state ................................ ................................ ................................ ................................ . 115 9.2 compatible pnp ................................ ................................ ................................ ............................... 1 16 9.2.1 extended function registers ................................ ................................ ................................ ............ 116 9.2.2 extended functions enable registers (efers) ................................ ................................ ................. 116 9.2.3 extended function index registers (efirs), extended function data registers(efdrs) ................. 116 10. configuration register ................................ ................................ ............... 117 10.1 chip (global) control register ................................ ................................ ............................ 117 10.2 logical device 0 (fdc) ................................ ................................ ................................ ................ 122 10.3 logical device 1 (parallel port) ................................ ................................ .......................... 12 6 10.4 logical device 2 (uart a) ) ................................ ................................ ................................ ...... 128 10.5 logical device 3 (uart b) ................................ ................................ ................................ .......... 129 10.6 logical device 4 (real time clock) ................................ ................................ ...................... 130 10.7 logical device 5 (kbc) ................................ ................................ ................................ ................ 131 10.8 logical device 6 (ir) ................................ ................................ ................................ .................... 132 10.9 logical device 7 (auxiliary i/o part i) ................................ ................................ ................ 134 10.10 logical device 8 (auxiliary i/o part ii) ................................ ................................ ............. 138 11. specifications ................................ ................................ ................................ ..... 1 42 11.1 absolute maximum ratings ................................ ................................ ................................ .... 142 11.2 dc characteristics ................................ ................................ ................................ ..................... 142 11.3 ac characteristics ................................ ................................ ................................ ..................... 146 11.3.1 fdc: data rate = 1 mb, 500 kb, 300 kb, 250 kb/sec. ................................ ................................ . 146 11.3.2 uart/parallel port ................................ ................................ ................................ ........................ 148 11.3.3 parallel port mode parameters ................................ ................................ ................................ ...... 148 11.3.4 epp data or address read cycle timing parameters ................................ ................................ .... 149 11.3.5 epp data or address write cycle timing parameters ................................ ................................ .... 150 11.3.6 parallel port fifo timing parameters ................................ ................................ ........................... 151 11.3.7 ecp parallel port forward timing parameters ................................ ................................ .............. 151 11.3.8 ecp parallel port reverse timing parameters ................................ ................................ ............... 151 11.3.9 kbc timing parameters ................................ ................................ ................................ ................. 152
w83977f/ W83977AF p r e l i m i n a r y publication release date:march 1998 - vii - preliminary revision 0.58 11.3.10 gpio, acpi, rom interface timing parameters ................................ ................................ .......... 153 12. timing waveforms ................................ ................................ ........................... 154 12.1 fdc ................................ ................................ ................................ ................................ ...................... 154 12.2 uart/parallel ................................ ................................ ................................ ............................... 1 55 12.2.1 modem control timing ................................ ................................ ................................ ................... 156 12.3 parallel port ................................ ................................ ................................ ................................ 1 57 12.3.1 parallel port timing ................................ ................................ ................................ ....................... 157 12.3.2 epp data or address read cycle (epp version 1.9) ................................ ................................ ...... 158 12.3.3 epp data or address write cycle (epp version 1.9) ................................ ................................ ...... 159 12.3.4 epp data or address read cycle (epp version 1.7) ................................ ................................ ...... 160 12.3.5 epp data or address write cycle (epp version 1.7) ................................ ................................ ...... 161 12.3.6 parallel port fifo timing ................................ ................................ ................................ ............. 161 12.3.7 ecp parallel port forward timing ................................ ................................ ................................ 162 12.3.8 ecp parallel port reverse timing ................................ ................................ ................................ . 162 12.4 kbc ................................ ................................ ................................ ................................ ...................... 163 12.4.1 write cycle timing ................................ ................................ ................................ ......................... 163 12.4.2 read cycle timing ................................ ................................ ................................ ......................... 163 12.4.3 send data to k/b ................................ ................................ ................................ ............................ 163 12.4.4 receive data from k/b ................................ ................................ ................................ ................... 164 12.4.5 input clock ................................ ................................ ................................ ................................ ..... 164 12.4.6 send data to mouse ................................ ................................ ................................ ........................ 164 12.4.7 receive data from mouse ................................ ................................ ................................ ............... 164 12.5 gpio write timing diagram ................................ ................................ ................................ ...... 165 12.6 master reset (mr) timing ................................ ................................ ................................ ......... 165 12.7 acpi ................................ ................................ ................................ ................................ ..................... 165 12.7.1 pansw trigger and psctrl timing ................................ ................................ ..................... 165 12.7.2 ria , rib , klck, mclk, pwakin1, pwakin2 trigger and psctrl timing ..................... 166 12.7.3 phri trigger and psctrl timing ................................ ................................ .......................... 166 13. application circuits ................................ ................................ ....................... 166 13.1 parallel port extension fdd ................................ ................................ ................................ . 166 13.2 parallel port extension 2fdd ................................ ................................ ............................... 167 13.3 four fdd mode ................................ ................................ ................................ ............................... 16 7
w83977f/ W83977AF p r e l i m i n a r y publication release date:march 1998 - viii - preliminary revision 0.58 14. ordering information ................................ ................................ .................. 168 15. how to read the top marking ................................ ................................ .. 168 16. package dimensions ................................ ................................ ........................ 169
w83977f/ W83977AF preliminary publication release date: march 1998 - 1 - revision 0.58 general description this data sheet covers two products: w83977f, and W83977AF whose pin assignment, and most of the functions are the same. W83977AF is an advanced version of w83977f featuring the fir function. w83977f/ af is an evolving product from winbond ?s most popular i/o chip w83877f --- which integrates the disk drive adapter, serial port (uart), irda 1.0 sir, parallel port, configurable plug- and-play registers in one chip --- plus additional powerful features: acpi , 8042 keyboard controller with ps/2 mouse support, real time clock, 14 general purpose i/o ports, full 16-bit address decoding, tv remote ir (consumer ir, supporting nec, rc-5, extended rc-5, and recs-80 protocols). in addition, W83977AF provides the functions of irda 1.1 (mir for 1.152m bps or fir for 4m bps). the disk drive adapter functions of w83977f/ af include a floppy disk drive controller compatible with the industry standard 82077/ 765, data separator, write pre-compensation circuit, decode logic, data rate selection, clock generator, drive interface control logic, and interrupt/ dma logic. the wide range of functions integrated onto the w83977f/ af greatly reduces the number of components required for interfacing with floppy disk drives. the w83977f/ af supports up to four 360k, 720k, 1.2m, 1.44m, or 2.88m disk drives and data transfer rates of 250 kb/s, 300 kb/s, 500 kb/s,1 mb/s, and 2 mb/s. the w83977f/ af provides two high-speed serial communication ports (uarts), one of which supports serial infrared communication. each uart includes a 16-byte send/receive fifo, a programmable baud rate generator, complete modem control capability, and a processor interrupt system. both uarts provide legacy speed with baud rate 115.2k and provide advanced speed with baud rate 230k , 460k , and 921k bps which support higher speed modems. W83977AF alone provides independent 3rd uart (32-byte fifo) dedicated for ir function. the w83977f/ af supports one pc-compatible printer port (spp), bi-directional printer port (bpp) and also enhanced parallel port (epp) and extended capabilities port (ecp). through the printer port interface pins, also available are: extension fdd mode and extension 2fdd mode allowing one or two external floppy disk drives to be connected. the configuration registers support mode selection, function enable/disable, and power down function selection. furthermore, the configurable pnp features are compatible with the plug-and-play feature demand of windows 95 tm , which makes system resource allocation more efficient than ever. w83977f/ af provides functions that comply with acpi ( advanced configuration and power interface ), which includes support of legacy and acpi power management through smi or sci function pins. w83977f/ af also has auto power management to reduce power consumption. the keyboard controller is based on 8042 compatible instruction set with a 2k byte programmable rom and a 256-byte ram bank. keyboard bios firmware is available with optional amikey tm - 2, phoenix multikey/42 tm , or customer code. the w83977f/ af provides a set of flexible i/o control functions to the system designer through a set of general purpose i/o ports. these gpio ports may serve as simple i/o or may be individually configured to provide a pre-defined alternate function. w83977f/ af is made to fully comply with microsoft tm pc97 hardware design guide . irqs, dmas, and i/o space resource are flexible to adjust to meet isa pnp requirement. full 16-bit address decoding is also provided. moreover w83977f/ af is made to meet the specification of pc97 ?s requirement in the power management: acpi and dpm (device power management).
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 2 - revision 0.58 features general plug & play 1.0a compliant support 13 irqs, 4 dma channels, full 16-bit addresses decoding capable of isa bus irq sharing compliant with microsoft pc97 hardware design guide support dpm (device power management), acpi programmable configuration settings 24 or 14.318 mhz clock input fdc compatible with ibm pc at disk drive systems variable write pre-compensation with track selectable capability support vertical recording format dma enable logic 16-byte data fifos support floppy disk drives and tape drives detects all overrun and underrun conditions built-in address mark detection circuit to simplify the read electronics fdd anti-virus functions with software write protect and fdd write enable signal (write data signal was forced to be inactive) support up to four 3.5-inch or 5.25-inch floppy disk drives completely compatible with industry standard 82077 360k/720k/1.2m/1.44m/2.88m format; 250k, 300k, 500k, 1m, 2m bps data transfer rate support 3-mode fdd, and its win95 driver uart two high-speed 16550 compatible uarts with 16-byte send/receive fifos 3rd uart with 32-byte send/receive fifo is supported for ir function [W83977AF only] midi compatible fully programmable serial-interface characteristics: --- 5, 6, 7 or 8-bit characters --- even, odd or no parity bit generation/detection --- 1, 1.5 or 2 stop bits generation internal diagnostic capabilities: --- loop-back controls for communications link fault isolation --- break, parity, overrun, framing error simulation programmable baud generator allows division of 1.8461 mhz and 24 mhz by 1 to (2 16 -1) maximum baud rate up to 921k bps for 14.769 mhz and 1.5m bps for 24 mhz
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 3 - revision 0.58 infrared support irda version 1.0 sir protocol with maximum baud rate up to 115.2k bps support sharp ask-ir protocol with maximum baud rate up to 57,600 bps support irda version 1.1 mir (1.152m bps) and fir (4m bps) protocol [W83977AF only] --- single dma channel for transmitter or receiver --- 3rd uart with 32-byte fifo is supported in both tx/rx transmission [W83977AF only] --- 8-byte status fifo is supported to store received frame status (such as overrun crc error, et c.) support auto-config sir and fir [W83977AF only] parallel port compatible with ibm parallel port support ps/2 compatible bi-directional parallel port support enhanced parallel port (epp) - compatible with ieee 1284 specification support extended capabilities port (ecp) - compatible with ieee 1284 specification extension fdd mode supports disk drive b; and extension 2fdd mode supports disk drives a and b through parallel port enhanced printer port back-drive current protection advanced power management (apm) controlling power turned on when rtc reaches a preset date and time power turned on when a ring pulse or pulse train is detected on the phri, or when a high to low transition on pwakin1, or pwakin2 input signals power turned on when pansw input signal indicates a switch on event power turned off when pansw input signal indicates a switch off event power turned off when a fail-safe event occurs (power-save mode detected but system is hung up) power turned off when software issues a power off command keyboard controller 8042 based with optional f/w from amikkey tm -2, phoenix multikey/42 tm or customer code with 2k bytes of programmable rom, and 256 bytes of ram asynchronous access to two data registers and one status register software compatibility with the 8042 and pc87911 microcontrollers support ps/2 mouse support port 92 support both interrupt and polling modes fast gate a20 and hardware keyboard reset 8 bit timer/ counter; support binary and bcd arithmetic 6, 8, 12, or 16 mhz operating frequency (16 mhz available only if input clock rate = 14.318 mhz)
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 4 - revision 0.58 real time clock 27 bytes of clock, on-now , and control/status register (14 bytes in bank 0 and 13 bytes in bank 2); 242 bytes of general purpose ram bcd or binary representation of time, calendar, and alarm registers counts seconds, minutes, hours, days of week, days of month, month, year, and century 12-hour/ 24-hour clock with am/pm in 12-hour mode daylight saving time option; automatic leap-year adjustment dedicated alarm (alarm b) for on-now function programmable delay-time between panel switch off and power supply control software control power-off; various and maskable events to activate system power-on system management interrupt ( smi ) for panel switch power-off event general purpose i/o ports 14 programmable general purpose i/o ports; 6 dedicate, 8 optional general purpose i/o ports can serve as simple i/o ports, interrupt steering inputs, watching dog timer output, power led output, infrared i/o pins, general purpose address decoder, kbc control i/o pins. package 128-pin pqfp
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 5 - revision 0.58 pin configuration 1 2 3 4 5 6 7 8 9 1 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 2 0 2 1 2 2 2 3 2 4 2 5 2 6 2 7 2 8 2 9 3 0 3 1 3 2 3 3 3 4 3 5 3 6 3 7 3 8 / m o p d 7 / a c k p d 2 p d 3 p d 4 / d i / s t p 6 v s s 5 / w e d / m o b a / w d y / d s a / d s b / i n d s l c t / d s k / w p / / h e b u s c l k / t r p e v c c p d p d 1 p d 0 / i n i / s l i s a / f d / t b / e r r i r r x i r t x 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 vbat xtal1 vss xtal2 mdata kdata kblock/gp13 kbrst/gp12 ga20/gp11 vcc dcdb soutb sinb dtrb/encpnp rtsb/penpll dsrb ctsb dcda souta/penkrc sina dtra/pnpcsv rtsa/hefras dsra ctsa cirrx/gp24 irrxh/irsl0 40 39 i 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 irq14/gp14 irq15/gp15 ior iow aen iochrdy d0 d1 d2 d3 d4 d5 vcc d6 d7 mr dack0/gp16 vss drq0/gp17 dack1 drq1 dack2 drq2 dack3 drq3 tc 1 0 2 1 0 1 1 0 0 9 9 9 8 9 7 9 6 9 5 9 4 9 3 9 2 9 1 9 0 8 9 8 8 8 7 8 6 8 5 8 4 8 3 8 2 8 1 8 0 7 9 7 8 7 7 7 6 7 5 7 4 7 3 7 2 7 1 7 0 6 9 6 8 6 7 6 6 6 5 g p g p 2 1 m c l k / r i b / r i a a 5 v c c a 0 k c l k i , g p 2 0 v s b a 1 a 2 a 3 a 4 a 6 a 7 a 8 a 9 a 1 0 1 1 a a 1 2 a 1 3 a 1 4 v s s a 1 5 i r q 1 2 p h r / s m i , p 2 2 / s c t l , 2 3 / a n s w , g p p i r q 9 i r q 8 i r q 7 i r q 6 i r q 5 i r q 4 i r q 3 i r q 1 i r q 1 0 i r q 1 1 n d r v d e n 0 d r v d e n 1 , g p 1 0 c h g a d d a t a a k 0 e p r e x n t r
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 6 - revision 0.58 1. pin description note: please refer to section 11.2 dc characteristics for details. i/o6t - ttl level bi-directional pin with 6 ma source-sink capability i/o8t - ttl level bi-directional pin with 8 ma source-sink capability i/o8 - cmos level bi-directional pin with 8 ma source- sink capability i/o12t - ttl level bi-directional pin with 12 ma source-sink capability i/o12 - cmos level bi-directional pin with 12 ma source-sink capability i/o16u - cmos level bi-directional pin with 16 ma source-sink capability with internal pull-up resistor i/od16u - cmos level bi-directional pin open drain output with 16 ma sink capability with internal pull-up resistor i/o24t - ttl level bi-directional pin with 24 ma source-sink capability out8t - ttl level output pin with 8 ma source-sink capa bility out12t - ttl level output pin with 12 ma source-sink capability od12 - open-drain output pin with 12 ma sink capability od24 - open-drain output pin with 24 ma sink capability int - ttl level input pin inc - cmos level input pin incu - cmos level input pin with internal pull-up resitor incs - cmos level schmitt-triggered input pin ints - ttl level schmitt-triggered input pin intsu - ttl level schmitt-triggered input pin with internal pull-up resistor 1.1 host interface symbol pin i/o function a0 - a10 74-84 in t system address bus bits 0-10 a11-a14 86-89 in t system address bus bits 11-14 a15 91 in t system address bus bit 15 d0 - d5 109-114 i/o 12t system data bus bits 0-5 d6 - d7 116-117 i/o 12t system data bus bits 6-7 ior 105 in ts cpu i/o read signal iow 106 in ts cpu i/o write signal aen 107 in t system address bus enable iochrdy 108 od 24 in epp mode, this pin is the io channel ready output to extend the host read/write cycle. mr 118 in ts master reset. active high. mr is low during normal operations.
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 7 - revision 0.58 1.1 host interface, continued symbol pin i/o function dack0 gp16 (wdto) p15 rtsc 119 in ts i/o 12t i/o 12t out 12t cr2c bit5, 4= 00 (default): dma channel 0 acknowledge signal. cr2c bit5, 4= 01: general purpose i/o port 1 bit 6. it can be configured as a watchdog timer output. cr2c bit5, 4= 10: keyboard p15 i/o port. cr2c bit5, 4= 11: rts output of uart c. [W83977AF only] drq0 gp17 (pledo) p14 dtrc 121 out 12t i/o 12t i/o 12t out 12t cr2c bit7, 6= 00 (default): dma channel 0 request signal. cr2c bit7, 6= 01: general purpose i/o port 1, bit 7. it can be configured as power led output. cr2c bit7, 6= 10: keyboard p14 i/o port. cr2c bit7, 6= 11: dtr output of uart c. [W83977AF only] dack1 122 in ts dma channel 1 acknowledge signal drq1 123 out 12t dma channel 1 request signal dack2 124 in ts dma channel 2 acknowledge signal drq2 125 out 12t dma channel 2 request signal dack3 126 in ts dma channel 3 acknowledge signal drq3 127 out 12t dma channel 3 request signal tc 128 in ts terminal count. when active, this pin indicates termination of a dma transfer. irq1 99 out 12t interrupt request 1 irq3 98 out 12t interrupt request 3 irq4 97 out 12t interrupt request 4 irq5 96 out 12t interrupt request 5 irq6 95 out 12t interrupt request 6 irq7 94 out 12t interrupt request 7 irq8/ nirq8 93 out 12t interrupt request 8; default is nirq8 for rtc irq9 92 out 12t interrupt request 9 irq10 100 out 12t interrupt request 10 irq11 101 out 12t interrupt request 11 irq12 102 out 12t interrupt request 12
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 8 - revision 0.58 1.1 host interface, continued symbol pin i/o function irq14 gp14 ( gpacs ) pled irsl1 103 out 12t i/o 12t out 12t out 12t cr2c bit1, 0= 00 (default): interrupt request 14 cr2c bit1, 0= 01: general purpose i/o port 1, bit 4. it can be configured as a general purpose address decode output. cr2c bit1, 0= 10: power led output. cr2c bit1, 0= 11: ir module select signal 1. [W83977AF only] irq15 gp15 ( gpawe ) wdt irsl2 104 out 12t i/o 12t out 12t out 12t cr2c bit3, 2= 00 (default): interrupt request 15 cr2c bit3, 2= 01: general purpose i/o port 1, bit 5. it can be configured as a general purpose address write enable output. cr2c bit3, 2= 10: watch-dog timer output. cr2c bit3, 2= 11: ir module select signal 2. [W83977AF only] clkin 1 in t 14.318/ 24 mhz clock input, selectable through bit 5 of cr24. 1.2 advanced power management symbol pin i/o function phri gp20 (kbrst) 69 in t i/o 12t cr2b bit2, 1=00 (default): advanced power management (apm) phone ring indicator. detection of an active phri pulse or pulse train activates the psctl signal. cr2b bit2, 1=01: general purpose i/o port 2, bit 0. it can be configured as keyboard reset (keyboard p20). pofirq gp21 (p13) p16 ric 70 out 12t i/o 12t i/o 12t in t cr2b bit4, 3=00 (default): advanced power management (apm) power off interrupt request. cr2b bit4, 3=01: general purpose i/o port 2, bit 1. it can be configured as keyboard p13 i/o port. cr2b bit4, 3=10: keyboard p16 i/o port. cr2b bit4, 3=11: ri input of uart c. [W83977AF only] vsb 71 - advanced power management (apm) standby current source psctl gp22 (p14) 72 out 12t i/o 12t cr2b bit5=0 (default): on/off control for advanced power management (apm). this signal tells the main power supply whether power should be turned on. cr2b bit5=1: general purpose i/o port 2, bit 2. it can be configured as keyboard p14 i/o port.
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 9 - revision 0.58 1.2 advanced power management, continued symbol pin i/o function pansw 73 in t cr2b bit7, 6=00 (default): on/off switch for advanced power management (apm). this signal indicates a request to switch the power on or off. when the v dd of the chip is disrupted, a high to low transition on this pin indicates a switch on request. when v dd returns, a high to low transition on this pin indicates a switch off request. gp23 (p15) i/o 12t cr2b bit7, 6=01: general purpose i/o port 2, bit 3. it can be configured as keyboard p15 i/o port. dcdc in t cr2b bit7, 6=11: dcd input of uart c. [W83977AF only] 1.3 serial port interface symbol pin i/o function ctsa ctsb 41 48 in t clear to send is the modem control input. the function of these pins can be tested by reading bit 4 of the handshake status register. dsra dsrb 42 49 in t data set ready. an active low signal indicates the modem or data set is ready to establish a communication link and transfer data to the uart. rtsa hefras 43 i/o 8t uart a request to send. an active low signal informs the modem or data set that the controller is ready to send data. during power-on reset, this pin is pulled down internally and is defined as hefras, which provides the power-on value for cr26 bit 6 (hefras). a 4.7 k w is recommended if intends to pull up. (select 370h as configuration i/o port address) rtsb npenpll 50 i/o 8t uart b request to send. an active low signal informs the modem or data set that the controller is ready to send data. during power-on reset, this pin is pulled down internally and is defined as n penpll , which provides the power-on value for cr24 bit 5 (enpll) and bit 6. a 4.7 k w is recommended if intends to pull up. (pll is disabled) dtra pnpcsv 44 i/o 8t uart a data terminal ready. an active low signal informs the modem or data set that the controller is ready to communicate. during power-on reset, this pin is pulled down internally and is defined as pnpcsv , which provides the power-on value for cr24 bit 0 ( pnpcsv ). a 4.7 k w is recommended if intends to pull up. (clear the default value of fdc, uarts, and ptr)
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 10 - revision 0.58 1.3 serial port interface, continued symbol pin i/o function dtrb encpnp 51 i/o 8t uart b data terminal ready. an active low signal informs the modem or data set that controller is ready to communicate. during power-on reset, this pin is pulled down internally and is defined as encpnp, which provides the power-on value for cr24 bit 1 (enpnp). a 4.7 k w is recommended if intends to pull up. (enable comply pnp mode) sina sinb 45, 52 in t serial input. used to receive serial data through the communication link. souta 46 i/o 8t uart a serial output. used to transmit serial data out to the communication link. penkrc during power-on reset, this pin is pulled down internally and is defined as penkrc, which provides the power-on value for cr24 bit 2 (enkbrtc). a 4.7 k w is recommended if intends to pull up. (enable kbc and rtc) soutb 53 i/o 8t uart b serial output. used to transmit serial data out to the communication link. dcda dcdb 47 54 in t data carrier detect. an active low signal indicates the modem or data set has detected a data carrier. ria rib 65 66 in t ring indicator. an active low signal indicates that a ring signal is being received from the modem or data set. 1.4 infrared interface symbol pin i/o function irrx (sinc) 37 in cs infrared receiver input. it functions as sin input if uart c is configured as a simple serial port. [W83977AF only] irtx (soutc) 38 out 12t infrared transmitter output. it functions as sout output if uart c is configured as a simple serial port. [W83977AF only] irrxh irsl0 gp25 (ga20) ctsc 39 i/o 12t out 12t i/o 12t in t cr2a bit3, 2=00 (default): high speed ir receiving terminal. cr2a bit3, 2=01: ir module select 0. cr2a bit3, 2=10: general purpose i/o port 2, bit 5. it can be configured as gate a20 (keyboard p21). cr2a bit3, 2=11: cts input of uart c. [W83977AF only] cirrx gp24 (p16) p13 40 in t i/o 12t i/o 12t cr2a bit5, 4=00 (default): consumer ir receiving terminal. cr2a bit5, 4=01: general purpose i/o port 2, bit 4. it can be configured as keyboard p16 i/o port. cr2a bit5, 4=10: keyboard p13 i/o
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 11 - revision 0.58 1.5 multi-mode parallel port the following pins have alternate functions, which are controlled by cr28 and l3-crf0. symbol pin i/o function slct 18 in t printer mode: slct an active high input on this pin indicates that the printer is selected. this pin is pulled high internally. refer to description of the parallel port for definition of this pin in ecp and epp mode. od 12 extension fdd mode: we 2 this pin is for extension fdd b; its function is the same as the we pin of fdc. od 12 extension 2fdd mode: we 2 this pin is for extension fdd a and b; its function is the same as the we pin of fdc. pe 19 in t printer mode: pe an active high input on this pin indicates that the printer has detected the end of the paper. this pin is pulled high internally. refer to description of the parallel port for definition of this pin in ecp and epp mode. od 12 extension fdd mode: wd 2 this pin is for extension fdd b; its function is the same as the wd pin of fdc. od 12 extension 2fdd mode: wd 2 this pin is for extension fdd a and b; its function is the same as the wd pin of fdc. busy 21 in t printer mode: busy an active high input indicates that the printer is not ready to receive data. this pin is pulled high internally. refer to description of the parallel port for definition of this pin in ecp and epp mode. od 12 extension fdd mode: mob 2 this pin is for extension fdd b; the function of this pin is the same as the mob pin of fdc. od 12 extension 2fdd mode: mob 2 this pin is for extension fdd a and b; the function of this pin is the same as the mob pin of fdc.
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 12 - revision 0.58 1.5 multi-mode parallel port, continued symbol pin i/o function ack 22 in t printer mode: ack an active low input on this pin indicates that the printer has received data and is ready to accept more data. this pin is pulled high internally. refer to description of the parallel port for definition of this pin in ecp and epp mode. od 12 extension fdd mode: dsb 2 this pin is for the extension fdd b; its functions is the same as the dsb pin of fdc. od 12 extension 2fdd mode: dsb 2 this pin is for extension fdd a and b; it functions is the same as the dsb pin of fdc. err 34 in t printer mode: err an active low input on this pin indicates that the printer has encountered an error condition. this pin is pulled high internally. refer to description of the parallel port for definition of this pin in ecp and epp mode. od 12 extension fdd mode: head 2 this pin is for extension fdd b; its function is the same as the head pin of fdc. od 12 extension 2fdd mode: head 2 this pin is for extension fdd a and b; its function is the same as the head pin of fdc. slin 32 od 12 printer mode: slin output line for detection of printer selection. this pin is pulled high internally. refer to description of the parallel port for definition of this pin in ecp and epp mode. od 12 extension fdd mode: step 2 this pin is for extension fdd b; its function is the same as the step pin of fdc. od 12 extension 2fdd mode: step 2 this pin is for extension fdd a and b; its function is the same as the step pin of fdc.
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 13 - revision 0.58 1.5 multi-mode parallel port, continued symbol pin i/o function init 33 od 12 od 12 od 12 printer mode: init output line for the printer initialization. this pin is pulled high internally. refer to description of the parallel port for definition of this pin in ecp and epp mode. extension fdd mode: dir 2 this pin is for extension fdd b; its function is the same as the dir pin of fdc. extension 2fdd mode: dir 2 this pin is for extension fdd a and b; its function is the same as the dir pin of fdc. afd 35 od 12 od 12 od 12 printer mode: afd an active low output from this pin causes the printer to auto feed a line after a line is printed. this pin is pulled high internally. refer to description of the parallel port for definition of this pin in ecp and epp mode. extension fdd mode: drvden0 this pin is for extension fdd b; its function is the same as the drvden0 pin of fdc. extension 2fdd mode: drvden0 this pin is for extension fdd a and b; its function is the same as the drvden0 pin of fdc. stb 36 od 12 - - printer mode: stb an active low output is used to latch the parallel data into the printer. this pin is pulled high internally. refer to description of the parallel port for definition of this pin in ecp and epp mode. extension fdd mode: this pin is a tri-state output. extension 2fdd mode: this pin is a tri-state output. pd0 31 i/o 24t in t in t printer mode: pd0 parallel port data bus bit 0. refer to description of the parallel port for definition of this pin in ecp and epp mode. extension fdd mode: index 2 this pin is for extension fdd b; the function of this pin is the same as the index pin of fdc. it is pulled high internally. extension 2fdd mode: index 2 this pin is for extension fdd a and b; the function of this pin is the same as the index pin of fdc. it is pulled high internally.
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 14 - revision 0.58 1.5 multi-mode parallel port, continued symbol pin i/o function pd1 30 i/o 24t printer mode: pd1 parallel port data bus bit 1. refer to description of the parallel port for definition of this pin in ecp and epp mode. . in t extension fdd mode: trak 02 this pin is for extension fdd b; the function of this pin is the same as the trak 0 pin of fdc. it is pulled high internally.. in t extension. 2fdd mode: trak 02 this pin is for extension fdd a and b; the function of this pin is the same as the trak 0 pin of fdc. it is pulled high internally. pd2 29 i/o 24t printer mode: pd2 parallel port data bus bit 2. refer to description of the parallel port for definition of this pin in ecp and epp mode.. in t extension fdd mode: wp 2 this pin is for extension fdd b; the function of this pin is the same as the wp pin of fdc. it is pulled high internally. in t extension. 2fdd mode: wp 2 this pin is for extension fdd a and b; the function of this pin is the same as the wp pin of fdc. it is pulled high internally. pd3 28 i/o 24t printer mode: pd3 parallel port data bus bit 3. refer to description of the parallel port for definition of this pin in ecp and epp mode. in t extension fdd mode: rdata 2 this pin is for extension fdd b; the function of this pin is the same as the rdata pin of fdc. it is pulled high internally. in t extension 2fdd mode: rdata 2 this pin is for extension fdd a and b; this function of this pin is the same as the rdata pin of fdc. it is pulled high internally.
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 15 - revision 0.58 1.5 multi-mode parallel port, continued symbol pin i/o function pd4 27 i/o 24t in t in t printer mode: pd4 parallel port data bus bit 4. refer to description of the parallel port for definition of this pin in ecp and epp mode. extension fdd mode: dskchg 2 this pin is for extension fdd b; the function of this pin is the same as the dskchg pin of fdc. it is pulled high internally. extension 2fdd mode: dskchg 2 this pin is for extension fdd a and b; this function of this pin is the same as the dskchg pin of fdc. it is pulled high internally. pd5 26 i/o 24t - - printer mode: pd5 parallel port data bus bit 5. refer to description of the parallel port for definition of this pin in ecp and epp mode. extension fdd mode: this pin is a tri-state output. extension 2fdd mode: this pin is a tri-state output. pd6 24 i/o 24t printer mode: pd6 parallel port data bus bit 6. refer to description of the parallel port for definition of this pin in ecp and epp mode. - extension fdd mode: this pin is a tri-state output. od 24 extension. 2fdd mode: moa 2 this pin is for extension fdd a; its function is the same as the moa pin of fdc. pd7 23 i/o 24t - od 24 printer mode: pd7 parallel port data bus bit 7. refer to description of the parallel port for definition of this pin in ecp and epp mode. extension fdd mode: this pin is a tri-state output. extension 2fdd mode: dsa 2 this pin is for extension fdd a; its function is the same as the dsa pin of fdc.
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 16 - revision 0.58 1.6 fdc interface symbol pin i/o function drvden0 2 od 24 drive density select bit 0. drvden1 gp10 (irqin1) p12 dsrc 3 od 24 drive density select bit 1. alternate function 1: general purpose i/o port 1, bit 0. it can be configured as an interrupt channel. alternate function 2: keyboard p12 i/o port. alternate function 3: dsr input of uart c [W83977AF only] head 5 od 24 head select. this open drain output determines which disk drive head is active. logic 1 = side 0; logic 0 = side 1 we 9 od 24 write enable. an open drain output. wd 10 od 24 write data. this logic low open drain writes precompensation serial data to the selected fdd. an open drain output. step 11 od 24 step output pulses. this active low open drain output produces a pulse to move the head to another track. dir 12 od 24 direction of the head step motor. an open drain output. logic 1 = outward motion; logic 0 = inward motion mob 13 od 24 motor b on. when set to 0, this pin enables disk drive 1. this is an open drain output. dsa 14 od 24 drive select a. when set to 0, this pin enables disk drive a. this is an open drain output. dsb 15 od 24 drive select b. when set to 0, this pin enables disk drive b. this is an open drain output. moa 16 od 24 motor a on. when set to 0, this pin enables disk drive 0. this is an open drain output. dskchg 4 in cs diskette change. this signal is active low at power on and when the diskette is removed. this input pin is pulled up internally by a 1 k w resistor, which can can be disabled by bit 7 of l0-crf0 (fipurdwn). rdata 6 in cs the read data input signal from the fdd. this input pin is pulled up internally by a 1 k w resistor, which can be disabled by bit 7 of l0- crf0 (fipurdwn). wp 7 in cs write protected. this active low schmitt input from the disk drive indicates that the diskette is write-protected. this input pin is pulled up internally by a 1 k w resistor, which can be disabled by bit 7 of l0- crf0 (fipurdwn). trak0 8 in cs track 0. this schmitt-triggered input from the disk drive is active low when the head is positioned over the outermost track. this input pin is pulled up internally by a 1 k w resistor, which can be disabled by bit 7 of l0-crf0 (fipurdwn).
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 17 - revision 0.58 1.6 fdc interface, continued symbol pin i/o function index 17 in cs this schmitt-triggered input from the disk drive is active low when the head is positioned over the beginning of a track marked by an index hole. this input pin is pulled up internally by a 1 k w resistor, which can be disabled by bit 7 of l0-crf0 (fipurdwn). 1.7 kbc interface symbol pin i/o function kdata 59 i/od 16u keyboard data mdata 60 i/od 16u ps2 mouse data kclk 67 i/od 16u keyboard clock mclk 68 i/od 16u ps2 mouse clock ga20 gp11 (irqin2) 56 out 12t i/o 12t cr2a bit6= 0 (default): keyboard gate a20 (p21) output. cr2a bit6= 1: general purpose i/o port 1, bit 1. it can be configured as an interrupt channel. kbrst gp12 (wdto, irrx) 57 out 12t i/o 12t cr2a bit7= 0 (default): keyboard reset (p20) output. cr2a bit7= 1: general purpose i/o port 1, bit 2. it can be configured as watchdog timer output or irrx (sinc if uart c is used as a simple serial port [W83977AF only] ) input. kblock gp13 (pledo, irtx) 58 in 16tu i/o 16tu cr2b bit0= 0 (default): keyboard kinh (p17) input. cr2b bit0= 1: general purpose i/o port 1, bit 3. it can be configured as watchdog timer output or irtx (soutc if uart c is used as a simple serial port [W83977AF only] ) output. 1.8 rtc interface symbol pin i/o function vbat 64 rtc battery voltage input xtal1 63 in c rtc 32.768khz clock input xtal2 61 o 8t rtc 32.768khz clock output 1.9 power pins vcc 20,55, 85,115 +5v power supply for the digital circuitry gnd 25,62, 90,120 ground
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 18 - revision 0.58 2. fdc functional description 2.1 w83977f/ af fdc the floppy disk controller of the w83977f/ af integrates all of the logic required for floppy disk control. the fdc implements a pc/at or ps/2 solution. all programmable options default to compatible values. the fifo provides better system performance in multi-master systems. the digital data separator supports up to 2 m bits/sec data rate. the fdc includes the following blocks: at interface, precompensation, data rate selection, digital data separator, fifo, and fdc core. 2.1.1 at interface the interface consists of the standard asynchronous signals: rd , wr , a0-a3, irq, dma control, and a data bus. the address lines select between the configuration registers, the fifo and control/status registers. this interface can be switched between pc/at, model 30, or ps/2 normal modes. the ps/2 register sets are a superset of the registers found in a pc/at. 2.1.2 fifo (data) the fifo is 16 bytes in size and has programmable threshold values. all command parameter information and disk data transfers go through the fifo. data transfers are governed by the rqm and dio bits in the main status register. the fifo defaults to disabled mode after any form of reset. this maintains pc/at hardware compatibility. the default values can be changed through the configure command. the advantage of the fifo is that it allows the system a larger dma latency without causing disk errors. the following tables give several examples of the delays with a fifo. the data are based upon the following formula: threshold # (1/data/rate) *8 - 1.5 m s = delay fifo threshold maximum delay to servicing at 500k bps data rate 1 byte 1 16 m s - 1.5 m s = 14.5 m s 2 byte 2 16 m s - 1.5 m s = 30.5 m s 8 byte 8 16 m s - 1.5 m s = 6.5 m s 15 byte 15 16 m s - 1.5 m s = 238.5 m s fifo threshold maximum delay to servicing at 1m bps data rate 1 byte 1 8 m s - 1.5 m s = 6.5 m s 2 byte 2 8 m s - 1.5 m s = 14.5 m s 8 byte 8 8 m s - 1.5 m s = 62.5 m s 15 byte 15 8 m s - 1.5 m s = 118.5 m s
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 19 - revision 0.58 at the start of a command the fifo is always disabled and command parameters must be sent based upon the rqm and dio bit settings in the main status register. when the fdc enters the command execution phase, it clears the fifo of any data to ensure that invalid data are not transferred. an overrun and underrun will terminate the current command and the data transfer. disk writes will complete the current sector by generating a 00 pattern and valid crc. reads require the host to remove the remaining data so that the result phase may be entered. dma transfers are enabled with the specify command and are initiated by the fdc by activating the drq pin during a data transfer command. the fifo is enabled directly by asserting dack and addresses need not be valid. note that if the dma controller is programmed to function in verify mode a pseudo read is performed by the fdc based only on dack . this mode is only available when the fdc has been configured into byte mode (fifo disabled) and is programmed to do a read. with the fifo enabled the above operation is performed by using the new verify command. no dma operation is needed. ? @ 2.1.3 data separator the function of the data separator is to lock onto the incoming serial read data. when a lock is achieved the serial front end logic of the chip is provided with a clock which is synchronized to the read data. the synchronized clock, called the data window, is used to internally sample the serial data portion of the bit cell, and the alternate state samples the clock portion. serial to parallel conversion logic separates the read data into clock and data bytes. the digital data separator (dds) has three parts: control logic, error adjustment, and speed tracking. the dds circuit cycles once every 12 clock cycles ideally. any data pulse input will be synchronized and then adjusted by immediate error adjustment. the control logic will generate rdd and rwd for every pulse input. during any cycle where no data pulse is present, the dds cycles are based on speed. a digital integrator is used to keep track of the speed changes in the input data stream. 2.1.4 write precompensation the write precompensation logic is used to minimize bit shifts in the rddata stream from the disk drive. shifting of bits is a known phenomenon in magnetic media and is dependent on the disk media and the floppy drive. the fdc monitors the bit stream that is being sent to the drive. the data patterns that require precompensation are well known. depending upon the pattern, the bit is shifted either early or late relative to the surrounding bits. 2.1.5 perpendicular recording mode the fdc is also capable of interfacing directly to perpendicular recording floppy drives. perpendicular recording differs from the traditional longitudinal method in that the magnetic bits are oriented vertically. this scheme packs more data bits into the same area. fdcs with perpendicular recording drives can read standard 3.5" floppy disks and can read and write perpendicular media. some manufacturers offer drives that can read and write standard and perpendicular media in a perpendicular media drive. a single command puts the fdc into perpendicular mode. all other commands operate as they normally do. the perpendicular mode requires a 1 mbps data rate for the fdc. at this data rate the fifo eases the host interface bottleneck due to the speed of data transfer to or from the disk.
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 20 - revision 0.58 2.1.6 fdc core the w83977f/ af fdc is capable of performing twenty commands. each command is initiated by a multi-byte transfer from the microprocessor. the result can also be a multi-byte transfer back to the microprocessor. each command consists of three phases: command, execution, and result. command the microprocessor issues all required information to the controller to perform a specific operation. execution the controller performs the specified operation. result after the operation is completed, status information and other housekeeping information is provided to the microprocessor. 2.1.7 fdc commands command symbol descriptions: c: cylinder number 0 - 256 d: data pattern dir: step direction dir = 0, step out dir = 1, step in ds0: disk drive select 0 ds1: disk drive select 1 dtl: data length ec: enable count eot: end of track efifo: enable fifo eis: enable implied seek eot: end of track fifothr: fifo threshold gap: gap length selection gpl: gap length h: head number hds: head number select hlt: head load time hut: head unload time lock: lock efifo, fifothr, ptrtrk bits prevent affected by software reset mfm: mfm or fm mod e mt: multitrack n: the number of data bytes written in a sector ncn: new cylinder number nd: non-dma mode ow: overwritten pcn: present cylinder number
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 21 - revision 0.58 poll: polling disable pretrk: precompensation start track number r: record rcn: relative cylinder number r/w: read/write sc: sector/per cylinder sk: skip deleted data address mark srt: step rate time st0: status register 0 st1: status register 1 st2: status register 2 st3: status register 3 wg: write gate alters timing of we
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 22 - revision 0.58 (1) read data phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w mt mfm sk 0 0 1 1 0 command codes w 0 0 0 0 0 hds ds1 ds0 w w ---------------------- c ------------------------ ---------------------- h ------------------------ sector id information prior to command execution w w ---------------------- r ------------------------ ---------------------- n ------------------------ w w -------------------- eot ----------------------- -------------------- gpl ----------------------- w -------------------- dtl ----------------------- execution data transfer between the fdd and system result r r r -------------------- st0 ----------------------- -------------------- st1 ----------------------- -------------------- st2 ----------------------- status information after command execution r r r r ---------------------- c ------------------------ ---------------------- h ------------------------ ---------------------- r ------------------------ ---------------------- n ------------------------ sector id information after command execution
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 23 - revision 0.58 (2) read deleted data phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w mt mfm sk 0 1 1 0 0 command codes w 0 0 0 0 0 hds ds1 ds0 w w ---------------------- c ------------------------ ---------------------- h ------------------------ sector id information prior to command execution w w ---------------------- r ------------------------ ---------------------- n ------------------------ w w -------------------- eot ----------------------- -------------------- gpl ----------------------- w -------------------- dtl ----------------------- execution data transfer between the fdd and system result r r r -------------------- st0 ----------------------- -------------------- st1 ----------------------- -------------------- st2 ----------------------- status information after command execution r r r r ---------------------- c ------------------------ ---------------------- h ------------------------ ---------------------- r ------------------------ ---------------------- n ------------------------ sector id information after command execution
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 24 - revision 0.58 (3) read a track phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 mfm 0 0 0 0 1 0 command codes w 0 0 0 0 0 hds ds1 ds0 w w ---------------------- c ------------------------ ---------------------- h ------------------------ sector id information prior to command execution w w ---------------------- r ------------------------ ---------------------- n ------------------------ w w -------------------- eot ----------------------- -------------------- gpl ----------------------- w -------------------- dtl ----------------------- execution data transfer between the fdd and system; fdd reads contents of all cylinders from index hole to eot result r r r -------------------- st0 ----------------------- -------------------- st1 ----------------------- -------------------- st2 ----------------------- status information after command execution r r r r ---------------------- c ------------------------ ---------------------- h ------------------------ ---------------------- r ------------------------ ---------------------- n ------------------------ sector id information after command execution
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 25 - revision 0.58 (4) read id phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 mfm 0 0 1 0 1 0 command codes w 0 0 0 0 0 hds ds1 ds0 execution the first correct id information on the cylinder is stored in data register result r r r -------------------- st0 ----------------------- -------------------- st1 ----------------------- -------------------- st2 ----------------------- status information after command execution r r r r ---------------------- c ------------------------ ---------------------- h ------------------------ ---------------------- r ------------------------ ---------------------- n ------------------------ disk status after the command has been completed (5) verify phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w mt mfm sk 1 0 1 1 0 command codes w ec 0 0 0 0 hds ds1 ds0 w w ---------------------- c ------------------------ ---------------------- h ------------------------ sector id information prior to command execution w w ---------------------- r ------------------------ ---------------------- n ------------------------ w w -------------------- eot ----------------------- -------------------- gpl ----------------------- -------------------- dtl/sc ------------------- execution no data transfer takes place result r r r -------------------- st0 ----------------------- -------------------- st1 ----------------------- -------------------- st2 ----------------------- status information after command execution r r r r ---------------------- c ------------------------ ---------------------- h ------------------------ ---------------------- r ------------------------ ---------------------- n ------------------------ sector id information after command execution
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 26 - revision 0.58 (6) version phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 0 0 1 0 0 0 0 command code result r 1 0 0 1 0 0 0 0 enhanced controller (7) write data phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w mt mfm 0 0 0 1 0 1 command codes w 0 0 0 0 0 hds ds1 ds0 w w ---------------------- c ------------------------ ---------------------- h ------------------------ sector id information prior to command execution w w ---------------------- r ------------------------ ---------------------- n ------------------------ w w -------------------- eot ----------------------- -------------------- gpl ----------------------- w -------------------- dtl ----------------------- execution data transfer between the fdd and system result r r r -------------------- st0 ----------------------- -------------------- st1 ----------------------- -------------------- st2 ----------------------- status information after command execution r r r r ---------------------- c ------------------------ ---------------------- h ------------------------ ---------------------- r ------------------------ ---------------------- n ------------------------ sector id information after command execution
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 27 - revision 0.58 (8) write deleted data phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w mt mfm 0 0 1 0 0 1 command codes w 0 0 0 0 0 hds ds1 ds0 w w ---------------------- c ------------------------ ---------------------- h ------------------------ sector id information prior to command execution w w ---------------------- r ------------------------ ---------------------- n ------------------------ w w w -------------------- eot ----------------------- -------------------- gpl ----------------------- -------------------- dtl ----------------------- execution data transfer between the fdd and system result r r r -------------------- st0 ----------------------- -------------------- st1 ----------------------- -------------------- st2 ----------------------- status information after command execution r r r r ---------------------- c ------------------------ ---------------------- h ------------------------ ---------------------- r ------------------------ ---------------------- n ------------------------ sector id information after command execution
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 28 - revision 0.58 (9) format a track phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 mfm 0 0 1 1 0 1 command codes w 0 0 0 0 0 hds ds1 ds0 w w ---------------------- n ------------------------ --------------------- sc ----------------------- bytes/sector sectors/cylinder w w --------------------- gpl --------------------- ---------------------- d ------------------------ gap 3 filler byte execution for each sector repeat: w w w w ---------------------- c ------------------------ ---------------------- h ------------------------ ---------------------- r ------------------------ ---------------------- n ------------------------ input sector parameters result r r r -------------------- st0 ----------------------- -------------------- st1 ----------------------- -------------------- st2 ----------------------- status information after command execution r r r r ---------------- undefined ------------------- ---------------- undefined ------------------- ---------------- undefined ------------------- ---------------- undefined ------------------- (10) recalibrate phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 0 0 0 0 1 1 1 command codes w 0 0 0 0 0 0 ds1 ds0 execution head retracted to track 0 interrupt (11) sense interrupt status phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 0 0 0 1 0 0 0 command code result r r ---------------- st0 ------------------------- ---------------- pcn ------------------------- status information at the end of each seek operation
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 29 - revision 0.58 (12) specify phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 0 0 0 0 0 1 1 command codes w w | ---------srt ----------- | --------- hut ---------- | |------------ hlt ----------------------------------| nd (13) seek phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 0 0 0 1 1 1 1 command codes w w 0 0 0 0 0 hds ds1 ds0 -------------------- ncn ----------------------- execution r head positioned over proper cylinder on diskette (14) configure phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 0 0 1 0 0 1 1 configure information w w w 0 0 0 0 0 0 0 0 0 eis efifo poll | ------ fifothr ----| | --------------------pretrk ----------------------- | execution internal registers written (15) relative seek phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 1 dir 0 0 1 1 1 1 command codes w w 0 0 0 0 0 hds ds1 ds0 | -------------------- rcn ---------------------------- |
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 30 - revision 0.58 (16) dumpreg phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 0 0 0 1 1 1 0 registers placed in fifo result r r r r r r r r r r ----------------------- pcn-drive 0-------------------- ----------------------- pcn-drive 1 ------------------- ----------------------- pcn-drive 2-------------------- ----------------------- pcn-drive 3 ------------------- --------srt ------------------ | --------- hut -------- ----------- hlt -----------------------------------| nd ------------------------ sc/eot ---------------------- lock 0 d3 d2 d1 d0 gap wg 0 eis efifo poll | ------ fifothr -------- -----------------------pretrk ------------------------- (17) perpendicular mode phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 0 0 1 0 0 1 0 command code w ow 0 d3 d2 d1 d0 gap wg (18) lock phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w lock 0 0 1 0 1 0 0 command code result r 0 0 0 lock 0 0 0 0 (19) sense drive status phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 0 0 0 0 1 0 0 command code w 0 0 0 0 0 hds ds1 ds0 result r ---------------- st3 ------------------------- status information about disk drive (20) invalid phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w ------------- invalid codes ----------------- invalid codes (no operation- fdc goes to standby state) result r -------------------- st0 ---------------------- st0 = 80h
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 31 - revision 0.58 2.2 register descriptions there are several status, data, and control registers in w83977f/ af. these registers are defined below: address register offset read write base address + 0 base address + 1 base address + 2 base address + 3 sa register sb register td register do register td register base address + 4 ms register dr register base address + 5 dt (fifo) register dt (fifo) register base address + 7 di register cc register 2.2.1 status register a (sa register) (read base address + 0) this register is used to monitor several disk interface pins in ps/2 and model 30 modes. in ps/2 mode, the bit definitions for this register are as follows: 1 2 3 4 5 6 7 0 wp index head trak0 step drv2 init pending dir init pending (bit 7): this bit indicates the value of the floppy disk interrupt output. drv 2 (bit 6): 0 a second drive has been installed 1 a second drive has not been installed step (bit 5): this bit indicates the complement of step output. trak 0 (bit 4): this bit indicates the value of trak 0 input.
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 32 - revision 0.58 head (bit 3): this bit indicates the complement of head output. 0 side 0 1 side 1 index (bit 2): this bit indicates the value of index output. wp (bit 1): 0 disk is write-protected 1 disk is not write-protected dir (bit 0) this bit indicates the direction of head movement. 0 outward direction 1 inward direction in ps/2 model 30 mode, the bit definitions for this register are as follows: 1 2 3 4 5 6 7 0 wp index head trak0 step f/f drq init pending dir init pending (bit 7): this bit indicates the value of the floppy disk interrupt output. drq (bit 6): this bit indicates the value of drq output pin. step f/f (bit 5): this bit indicates the complement of latched step output. trak0 (bit 4): this bit indicates the complement of trak 0 input. head (bit 3):
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 33 - revision 0.58 this bit indicates the value of head output. 0 side 1 1 side 0 index (bit 2): this bit indicates the complement of index output. wp (bit 1): 0 disk is not write-protected 1 disk is write-protected dir (bit 0) this bit indicates the direction of head movement. 0 inward direction 1 outward direction status register b (sb register) (read base address + 1) this register is used to monitor several disk interface pins in ps/2 and model 30 modes. in ps/2 mode, the bit definitions for this register are as follows: 1 2 3 4 5 6 7 0 mot en a we rdata toggle wdata toggle drive sel0 mot en b 1 1 drive sel0 (bit 5): this bit indicates the status of do register bit 0 (drive select bit 0). wdata toggle (bit 4): this bit changes state at every rising edge of the wd output pin. rdata toggle (bit 3): this bit changes state at every rising edge of the rdata output pin. we (bit 2): this bit indicates the complement of the we output pin. mot en b (bit 1) this bit indicates the complement of the mob output pin.
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 34 - revision 0.58 mot en a (bit 0) this bit indicates the complement of the moa output pin. in ps/2 model 30 mode, the bit definitions for this register are as follows: 1 2 3 4 5 6 7 0 dsc dsd we f/f rdata f/f dsa dsb drv2 wd f/f drv 2 (bit 7): 0 a second drive has been installed 1 a second drive has not been installed dsb (bit 6): this bit indicates the status of dsb output pin. dsa (bit 5): this bit indicates the status of dsa output pin. wd f/f(bit 4): this bit indicates the complement of the latched wd output pin at every rising edge of the wd output pin. rdata f/f(bit 3): this bit indicates the complement of the latched rdata output pin . we f/f (bit 2): this bit indicates the complement of latched we output pin. dsd (bit 1): 0 drive d has been selected 1 drive d has not been selected dsc (bit 0): 0 drive c has been selected 1 drive c has not been selected
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 35 - revision 0.58 2.2.3 digital output register (do register) (write base address + 2) the digital output register is a write-only register controlling drive motors, drive selection, drq/irq enable, and fdc resetting. all the bits in this register are cleared by the mr pin. the bit definitions are as follows: 7 6 5 4 3 2 1-0 drive select: 00 select drive a 01 select drive b 10 select drive c 11 select drive d floppy disk controller reset active low resets fdc dma and int enable active high enable drq/irq motor enable a. motor a on when active high motor enable b. motor b on when active high motor enable c. motor c on when active high motor enable d. motor d on when active high 2.2.4 tape drive register (td register) (read base address + 3) this register is used to assign a particular drive number to the tape drive support mode of the data separator. this register also holds the media id, drive type, and floppy boot drive information of the floppy disk drive. in normal floppy mode, this register includes only bit 0 and 1. the bit definitions are as follows: 1 2 3 4 5 6 7 0 tape sel 0 tape sel 1 x x x x x x if three mode fdd function is enabled (en3mode = 1 in logical device 0 crf0 bit:0), the bit definitions are as follows: 1 2 3 4 5 6 7 0 floppy boot drive 0 floppy boot drive 1 drive type id0 drive type id1 media id0 media id1 tape sel 0 tape sel 1
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 36 - revision 0.58 media id1 media id0 (bit 7, 6): these two bits are read only. these two bits reflect the value of logical device 0 crf1 bit 4,5. drive type id1 drive type id0 (bit 5, 4): these two bits reflect two of the bits of logical device 0 crf2. which two bits are reflected depends on the last drive selected in the do register. floppy boot drive 1, 0 (bit 3, 2): these two bits reflect the value of logical device 0 crf1 bit 7,6. tape sel 1, tape sel 0 (bit 1, 0): these two bits assign a logical drive number to the tape drive. drive 0 is not available as a tape drive and is reserved as the floppy disk boot drive. tape sel 1 tape sel 0 drive selected 0 0 none 0 1 1 1 0 2 1 1 3 2.2.5 main status register (ms register) (read base address + 4) the main status register is used to control the flow of data between the microprocessor and the controller. the bit definitions for this register are as follows: fdd 0 busy, (d0b = 1), fdd number 0 is in the seek mode. fdd 1 busy, (d1b = 1), fdd number 1 is in the seek mode. fdc busy, (cb). a read or write command is in the process when cb = high. non-dma mode, the fdc is in the non-dma mode, this bit is set only during the execution phase in non-dma mode. transition to low state indicates execution phase has ended. data input/output, (dio). if dio= high then transfer is from data register to the processor. if dio = low then transfer is from processor to data register. request for master (rqm). a high on this bit indicates data register is ready to send or receive data to or from the processor. 7 6 5 4 3 2 1 0 fdd 2 busy, (d2b = 1), fdd number 2 is in the seek mode. fdd 3 busy, (d3b = 1), fdd number 3 is in the seek mode. 2.2.6 data rate register (dr register) (write base address + 4) the data rate register is used to set the transfer rate and write precompensation. the data rate of the fdc is programmed by the cc register for pc-at and ps/2 model 30 and ps/2 mode, and not by the dr register. the real data rate is determined by the most recent write to either of the dr register or cc register.
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 37 - revision 0.58 1 2 3 4 5 6 7 0 drate0 drate1 precomp0 precomp1 precomp2 power down s/w reset 0 s/w reset (bit 7): this bit is the software reset bit. power-down (bit 6): 0 fdc in normal mode 1 fdc in power-down mode precomp2 precomp1 precomp0 (bit 4, 3, 2): these three bits select the value of write precompensation. the following tables show the precompensation values for the combination of these bits. precomp precompensation delay 2 1 0 250k - 1 mbps 2 mbps tape drive 0 0 0 default delays default delays 0 0 1 41.67 ns 20.8 ns 0 1 0 83.34 ns 41.17 ns 0 1 1 125.00 ns 62.5ns 1 0 0 166.67 ns 83.3 ns 1 0 1 208.33 ns 104.2 ns 1 1 0 250.00 ns 125.00 ns 1 1 1 0.00 ns (disabled) 0.00 ns (disabled)
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 38 - revision 0.58 data rate default precompensation delays 250 kb/s 125 ns 300 kb/s 125 ns 500 kb/s 125 ns 1 mb/s 41.67ns 2 mb/s 20.8 ns drate1 drate0 (bit 1, 0): these two bits select the data rate of the fdc and reduced write current control. 00 500 kb/s (mfm), 250 kb/s (fm), rwc = 1 01 300 kb/s (mfm), 150 kb/s (fm), rwc = 0 10 250 kb/s (mfm), 125 kb/s (fm), rwc = 0 11 1 mb/s (mfm), illegal (fm), rwc = 1 the 2 mb/s data rate for tape drive is only supported by setting 01 to drate1 and drate0 bits, as well as setting 10 to drt1 and drt0 bits which are two of the configure register crf4 or crf5 bits in logic device 0. please refer to the function description of crf4 or crf5 and data rate table for individual data rates setting. 2.2.7 fifo register (r/w base address + 5) the data register consists of four status registers in a stack with only one register presented to the data bus at a time. this register stores data, commands, and parameters and provides diskette-drive status information. data bytes are passed through the data register to program or obtain results after a command. in the w83977f/ af, this register defaults to fifo disabled mode after reset. the fifo can change its value and enable its operation through the configure command.
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 39 - revision 0.58 status register 0 (st0) 7-6 5 4 3 2 1-0 us1, us0 drive select: 00 drive a selected 01 drive b selected 10 drive c selected 11 drive d selected hd head address: 1 head selected 0 head selected nr not ready: 1 drive is not ready 0 drive is ready ec equipment check: 1 when a fault signal is received from the fdd or the track 0 signal fails to occur after 77 step pulses 0 no error se seek end: 1 seek end 0 seek error ic interrupt code: 00 normal termination of command 01 abnormal termination of command 10 invalid command issue 11 abnormal termination because the ready signal from fdd changed state during command execution status register 1 (st1) missing address mark. 1 when the fdc cannot detect the data address mark or the data address mark has been deleted. nw (not writable). 1 if a write protect signal is detected from the diskette drive during execution of write data. nd (no data). 1 if specified sector cannot be found during execution of a read, write or verifly data. not used. this bit is always 0. or (over rum). 1 if the fdc is not serviced by the host system within a certain time interval during data transfer. de (data error).1 when the fdc detects a crc error in either the id field or the data field. not used. this bit is always 0. en (end of track). 1 when the fdc tries to access a sector beyond the final sector of a cylinder. 0 1 2 3 4 5 6 7 status register 2 (st2) 1 2 3 4 5 6 7 0 bc (bad cylinder) md (missing address mark in data field). 1 if the fdc cannot find a data address mark (or the address mark has been deleted) when reading data from the media 0 no error 1 bad cylinder 0 no error sn (scan not satisfied) 1 during execution of the scan command 0 no error sh (scan equal hit) 1 during execution of the scan command, if the equal condition is satisfied 0 no error wc (wrong cylinder) 1 indicates wrong cylinder dd (data error in the data field) 1 if the fdc detects a crc error in the data field 0 no error cm (control mark) 1 during execution of the read data or scan command 0 no error not used. this bit is always 0
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 40 - revision 0.58 status register 3 (st3) 1 2 3 4 5 6 7 0 us0 unit select 0 us1 unit select 1 hd head address ts two-side to track 0 ry ready wp write protected ft fault 2.2.8 digital input register (di register) (read base address + 7) the digital input register is an 8-bit read-only register used for diagnostic purposes. in a pc/xt or at only bit 7 is checked by the bios. when the register is read, bit 7 shows the complement of dskchg , while other bits of the data bus remain in tri-state. bit definitions are as follows: x x x x x x x x 0 1 2 3 4 5 6 7 reserved for the hard disk controller during a read of this register, these bits are in tri-state dskchg in the ps/2 mode, the bit definitions are as follows: 1 2 3 4 5 6 7 0 high dens drate0 drate1 dskchg 1 1 1 1 dskchg (bit 7): this bit indicates the complement of the dskchg input. bit 6-3: these bits are always a logic 1 during a read.
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 41 - revision 0.58 drate1 drate0 (bit 2, 1): these two bits select the data rate of the fdc. refer to the dr register bits 1 and 0 for the settings corresponding to the individual data rates. high dens (bit 0): 0 500 kb/s or 1 mb/s data rate (high density fdd) 1 250 kb/s or 300 kb/s data rate in the ps/2 model 30 mode, the bit definitions are as follows: 1 2 3 4 5 6 7 0 drate0 drate1 dskchg noprec dmaen 0 0 0 dskchg (bit 7): this bit indicates the status of dskchg input. bit 6-4: these bits are always a logic 1 during a read. dmaen (bit 3): this bit indicates the value of do register bit 3. noprec (bit 2): this bit indicates the value of cc register noprec bit. drate1 drate0 (bit 1, 0): these two bits select the data rate of the fdc.
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 42 - revision 0.58 2.2.9 configuration control register (cc register) (write base address + 7) this register is used to control the data rate. in the pc/at and ps/2 mode, the bit definitions are as follows: x x x x x x drate0 drate1 0 1 2 3 4 5 7 6 x: reserved bit 7-2: reserved. these bits should be set to 0. drate1 drate0 (bit 1, 0): these two bits select the data rate of the fdc. in the ps/2 model 30 mode, the bit definitions are as follows: 1 2 3 4 5 6 7 0 drate0 drate1 noprec x x x x x x : reserved bit 7-3: reserved. these bits should be set to 0. noprec (bit 2): this bit indicates no precompensation. it has no function and can be set by software. drate1 drate0 (bit 1, 0): these two bits select the data rate of the fdc.
w83977f/ W83977AF p r e l i m i n a r y publication release date: january 1997 - 43 - revision 0.50 3. uart port 3.1 universal asynchronous receiver/transmitter (uart a, uart b) the uarts are used to convert parallel data into serial format on the transmit side and convert serial data to parallel format on the receiver side. the serial format, in order of transmission and reception, is a start bit, followed by five to eight data bits, a parity bit (if programmed) and one, one and half (five-bit format only) or two stop bits. the uarts are capable of handling divisors of 1 to 65535 and producing a 16x clock for driving the internal transmitter logic. provisions are also included to use this 16x clock to drive the receiver logic. the uarts also support the midi data rate. furthermore, the uarts also include complete modem control capability and a processor interrupt system that may be software trailed to the computing time required to handle the communication link. the uarts have a fifo mode to reduce the number of interrupts presented to the cpu. in each uart, there are 16-byte fifos for both receive and transmit mode. 3.2 register address 3.2.1 uart control register (ucr) (read/write) the uart control register controls and defines the protocol for asynchronous data communications, including data length, stop bit, parity, and baud rate selection. 1 2 3 4 5 6 7 0 data length select bit 0 (dls0) data length select bit 1(dls1) multiple stop bits enable (msbe) parity bit enable (pbe) even parity enable (epe) parity bit fixed enable (pbfe) set silence enable (sse) baudrate divisor latch access bit (bdlab) bit 7: bdlab. when this bit is set to a logical 1, designers can access the divisor (in 16-bit binary format) from the divisor latches of the baudrate generator during a read or write operation. when this bit is reset, the receiver buffer register, the transmitter buffer register, or the interrupt control register can be accessed. bit 6: sse. a logical 1 forces the serial output (sout) to a silent state (a logical 0). only irtx is affected by this bit; the transmitter is not affected. bit 5: pbfe. when pbe and pbfe of ucr are both set to a logical 1, (1) if epe is logical 1, the parity bit is fixed as logical 0 to transmit and check. (2) if epe is logical 0, the parity bit is fixed as logical 1 to transmit and check.
w83977f/ W83977AF p r e l i m i n a r y publication release date: january 1997 - 44 - revision 0.50 table 3-1 uart register bit map b it n umber r egister a ddress b ase 0 1 2 3 4 5 6 7 + 0 bdlab = 0 r eceiver b uffer r egister (read only) rbr rx data bit 0 rx data bit 1 rx data bit 2 rx data bit 3 rx data bit 4 rx data bit 5 rx data bit 6 rx data bit 7 + 0 bdlab = 0 t ransmitter b uffer r egister ( write only) tbr tx data bit 0 tx data bit 1 tx data bit 2 tx data bit 3 tx data bit 4 tx data bit 5 tx data bit 6 tx data bit 7 + 1 bdlab = 0 i nterrupt c ontrol r egister icr rbr data ready interrupt enable (erdri) tbr empty interrupt enable (etbrei) usr interrupt enable (eusri) hsr interrupt enable (ehsri) 0 0 0 0 + 2 i nterrupt s tatus r egister ( read only ) isr "0" if interrupt pending interrupt status bit (0) interrupt status bit (1) interrupt status bit (2)** 0 0 fifos enabled ** fifos enabled ** + 2 u art fifo c ontrol r egister (write only) ufr fifo enable rcvr fifo reset xmit fifo reset dma mode select reserved reversed rx interrupt active level (lsb) rx interrupt active level (msb) + 3 u art c ontrol r egister ucr data length select bit 0 (dls0) data length select bit 1 (dls1) multiple stop bits enable (msbe) parity bit enable (pbe) even parity enable (epe) parity bit fixed enable pbfe) set silence enable (sse) baudrate divisor latch access bit (bdlab) + 4 h andshake c ontrol r egister hcr data terminal ready (dtr) request to send (rts) loopback ri input irq enable internal loopback enable 0 0 0 + 5 u art s tatus r egister usr rbr data ready (rdr) overrun error (oer) parity bit error (pber) no stop bit error (nser) silent byte detected (sbd) tbr empty (tbre) tsr empty (tsre) rx fifo error indication (rfei) ** + 6 h andshake s tatus r egister hsr cts toggling (tcts) dsr toggling (tdsr) ri falling edge (feri) dcd toggling (tdcd) clear to send (cts) data set ready (dsr) ring indicator (ri) data carrier detect (dcd) + 7 u ser d efined r egister udr bit 0 bit 1 bit 2 bit 3 bit 4 bit 5 bit 6 bit 7 + 0 bdlab = 1 b audrate d ivisor l atch l ow bll bit 0 bit 1 bit 2 bit 3 bit 4 bit 5 bit 6 bit 7 + 1 bdlab = 1 b audrate d ivisor l atch h igh bhl bit 8 bit 9 bit 10 bit 11 bit 12 bit 13 bit 14 bit 15 *: bit 0 is the least significant bit. the least significant bit is the first bit serially transmitted or received. **: these bits are always 0 in 16450 mode.
w83977f/ W83977AF p r e l i m i n a r y publication release date: january 1997 - 45 - revision 0.50 bit 4: epe. this bit describes the number of logic 1's in the data word bits and parity bit only when bit 3 is programmed. when this bit is set, an even number of logic 1's are sent or checked. when the bit is reset, an odd number of logic 1's are sent or checked. bit 3: pbe. when this bit is set, the position between the last data bit and the stop bit of the sout will be stuffed with the parity bit at the transmitter. for the receiver, the parity bit in the same position as the transmitter will be detected. bit 2: msbe. this bit defines the number of stop bits in each serial character that is transmitted or received. (1) if msbe is set to a logical 0, one stop bit is sent and checked. (2) if msbe is set to a logical 1, and data length is 5 bits, one and a half stop bits are sent and checked. (3) if msbe is set to a logical 1, and data length is 6, 7, or 8 bits, two stop bits are sent and checked. bits 0 and 1: dls0, dls1. these two bits define the number of data bits that are sent or checked in each serial character. table 3-2 word length definition dls1 dls0 data length 0 0 5 bits 0 1 6 bits 1 0 7 bits 1 1 8 bits 3.2.2 uart status register (usr) (read/write) this 8-bit register provides information about the status of the data transfer during communication. 1 2 3 4 5 6 7 0 rbr data ready (rdr) overrun error (oer) parity bit error (pber) no stop bit error (nser) silent byte detected (sbd) transmitter buffer register empty (tbre) transmitter shift register empty (tsre) rx fifo error indication (rfei) bit 7: rfei. in 16450 mode, this bit is always set to a logic 0. in 16550 mode, this bit is set to a logic 1 when there is at least one parity bit error, no stop bit error or silent byte detected in the fifo. in 16550 mode, this bit is cleared by reading from the usr if there are no remaining errors left in the fifo.
w83977f/ W83977AF p r e l i m i n a r y publication release date: january 1997 - 46 - revision 0.50 bit 6: tsre. in 16450 mode, when tbr and tsr are both empty, this bit will be set to a logical 1. in 16550 mode, if the transmit fifo and tsr are both empty, it will be set to a logical 1. other thanthese two cases, this bit will be reset to a logical 0. bit 5: tbre. in 16450 mode, when a data character is transferred from tbr to tsr, this bit will be set to a logical 1. if etrei of icr is a logical 1, an interrupt will be generated to notify the cpu to write the next data. in 16550 mode, this bit will be set to a logical 1 when the transmit fifo is empty. it will be reset to a logical 0 when the cpu writes data into tbr or fifo. bit 4: sbd. this bit is set to a logical 1 to indicate that received data are kept in silent state for a full word time, including start bit, data bits, parity bit, and stop bits. in 16550 mode, it indicates the same condition for the data on top of the fifo. when the cpu reads usr, it will clear this bit to a logical 0. bit 3: nser. this bit is set to a logical 1 to indicate that the received data have no stop bit. in 16550 mode, it indicates the same condition for the data on top of the fifo. when the cpu reads usr, it will clear this bit to a logical 0. bit 2: pber. this bit is set to a logical 1 to indicate that the parity bit of received data is wrong. in 16550 mode, it indicates the same condition for the data on top of the fifo. when the cpu reads usr, it will clear this bit to a logical 0. bit 1: oer. this bit is set to a logical 1 to indicate received data have been overwritten by the next received data before they were read by the cpu. in 16550 mode, it indicates the same condition instead of fifo full. when the cpu reads usr, it will clear this bit to a logical 0. bit 0: rdr. this bit is set to a logical 1 to indicate received data are ready to be read by the cpu in the rbr or fifo. after no data are left in the rbr or fifo, the bit will be reset to a logical 0. 3.2.3 handshake control register (hcr) (read/write) this register controls the pins of the uart used for handshaking peripherals such as modem, and controls the diagnostic mode of the uart. 0 0 0 0 1 2 3 4 5 6 7 data terminal ready (dtr) request to send (rts) loopback ri input irq enable internal loopback enable bit 4: when this bit is set to a logical 1, the uart enters diagnostic mode by an internal loopback, as follows: (1) sout is forced to logical 1, and sin is isolated from the communication link instead of the tsr. (2) modem output pins are set to their inact ive state. (3) modem input pins are isolated from the communication link and connect internally as dtr
w83977f/ W83977AF p r e l i m i n a r y publication release date: january 1997 - 47 - revision 0.50 (bit 0 of hcr) ? dsr , rts ( bit 1 of hcr) ? cts , loopback ri input ( bit 2 of hcr) ? ri and irq enable ( bit 3 of hcr) ? dcd . aside from the above connections, the uart operates normally. this method allows the cpu to test the uart in a convenient way. bit 3: the uart interrupt output is enabled by setting this bit to a logic 1. in the diagnostic mode this bit is internally connected to the modem control input dcd . bit 2: this bit is used only in the diagnostic mode. in the diagnostic mode this bit is internally connected to the modem control input ri . bit 1: this bit controls the rts output. the value of this bit is inverted and output to rts . bit 0: this bit controls the dtr output. the value of this bit is inverted and output to dtr . 3.2.4 handshake status register (hsr) (r ead/write) this register reflects the current state of four input pins for handshake peripherals such as a modem and records changes on these pins. 1 2 3 4 5 6 7 0 ri falling edge (feri) clear to send (cts) data set ready (dsr) ring indicator (ri) data carrier detect (dcd) cts toggling (tcts) dsr toggling (tdsr) dcd toggling (tdcd) bit 7: this bit is the opposite of the dcd input. this bit is equivalent to bit 3 of hcr in loopback mode. bit 6: this bit is the opposite of the ri input. this bit is equivalent to bit 2 of hcr in loopback mode. bit 5: this bit is the opposite of the dsr input. this bit is equivalent to bit 0 of hcr in loopback mode. bit 4: this bit is the opposite of the cts input. this bit is equivalent to bit 1 of hcr in loopback mode. bit 3: tdcd. this bit indicates that the dcd pin has changed state after hsr was read by the cpu. bit 2: feri. this bit indicates that the ri pin has changed from low to high state after hsr was read by the cpu. bit 1: tdsr. this bit indicates that the dsr pin has changed state after hsr was read by the cpu. bit 0: tcts. this bit indicates that the cts pin has changed state after hsr was read. 3.2.5 uart fifo c ontrol register (ufr) (write only) this register is used to control the fifo functions of the uart.
w83977f/ W83977AF p r e l i m i n a r y publication release date: january 1997 - 48 - revision 0.50 1 2 3 4 5 6 7 0 fifo enable receiver fifo reset transmitter fifo reset dma mode select reserved reserved rx interrupt active level (lsb) rx interrupt active level (msb) bit 6, 7: these two bits are used to set the active level for the receiver fifo interrupt. for example, if the interrupt active level is set as 4 bytes, once there are more than 4 data characters in the receiver fifo, the interrupt will be activated to notify the cpu to read the data from the fifo. table 3-3 fifo trigger level bit 7 bit 6 rx fifo interrupt active level (bytes) 0 0 01 0 1 04 1 0 08 1 1 14 bit 4, 5: reserved bit 3: when this bit is programmed to logic 1, the dma mode will change from mode 0 to mode 1 if ufr bit 0 = 1. bit 2: setting this bit to a logical 1 resets the tx fifo counter logic to initial state. this bit will clear to a logical 0 by itself after being set to a logical 1. bit 1: setting this bit to a logical 1 resets the rx fifo counter logic to initial state. this bit will clear to a logical 0 by itself after being set to a logical 1. bit 0: this bit enables the 16550 (fifo) mode of the uart. this bit should be set to a logical 1 before other bits of ufr are programmed. 3.2.6 interrupt status register (isr) (read only) this register reflects the uart interrupt status, which is encoded by different interrupt sources into 3 bits.
w83977f/ W83977AF p r e l i m i n a r y publication release date: january 1997 - 49 - revision 0.50 1 2 3 4 5 6 7 0 0 if interrupt pending interrupt status bit 0 interrupt status bit 1 interrupt status bit 2 fifos enabled fifos enabled 0 0 bit 7, 6: these two bits are set to a logical 1 when ufr bit 0 = 1. bit 5, 4: these two bits are always logic 0. bit 3: in 16450 mode, this bit is 0. in 16550 mode, both bit 3 and 2 are set to a logical 1 when a time- out interrupt is pending. bit 2, 1: these two bits identify the priority level of the pending interrupt, as shown in the table below. bit 0: this bit is a logical 1 if there is no interrupt pending. if one of the interrupt sources has occurred, this bit will be set to a logical 0. table 3-4 interrupt control function isr interrupt set and function bit 3 bit 2 bit 1 bit 0 interrupt priority interrupt type interrupt source clear interrupt 0 0 0 1 - - no interrupt pending - 0 1 1 0 first uart receive status 1. oer = 1 2. pber =1 3. nser = 1 4. sbd = 1 read usr 0 1 0 0 second rbr data ready 1. rbr data ready 2. fifo interrupt active level reached 1. read rbr 2. read rbr until fifo data under active level 1 1 0 0 second fifo data timeout data present in rx fifo for 4 characters period of time since last access of rx fifo. read rbr 0 0 1 0 third tbr empty tbr empty 1. write data into tbr 2. read isr (if priority is third) 0 0 0 0 fourth handshake status 1. tcts = 1 2. tdsr = 1 3. feri = 1 4. tdcd = 1 read hsr ** bit 3 of isr is enabled when bit 0 of ufr is logical 1. 3.2.7 interrupt control register (icr) (read/write) this 8-bit register allows the five types of controller interrupts to activate the interrupt output signal separately. the interrupt system can be totally disabled by resetting bits 0 through 3 of the
w83977f/ W83977AF p r e l i m i n a r y publication release date: january 1997 - 50 - revision 0.50 interrupt
w83977f/ W83977AF p r e l i m i n a r y publication release date: january 1997 - 51 - revision 0.50 control register (icr). a selected interrupt can be enabled by setting the appropriate bits of this register to a logical 1. 0 0 0 1 2 3 4 5 6 7 0 0 rbr data ready interrupt enable (erdri) tbr empty interrupt enable (etbrei) uart receive status interrupt enable (eusri) handshake status interrupt enable (ehsri) bit 7-4: these four bits are always logic 0. bit 3: ehsri. setting this bit to a logical 1 enables the handshake status register interrupt. bit 2: eusri. setting this bit to a logical 1 enables the uart status register interrupt. bit 1: etbrei. setting this bit to a logical 1 enables the tbr empty interrupt. bit 0: erdri. setting this bit to a logical 1 enables the rbr data ready interrupt. 3.2.8 programmable baud generator (bll/bhl) (read/write) two 8-bit registers, bll and bhl, compose a programmable baud generator that uses 24 mhz to generate a 1.8461 mhz frequency and divides it by a divisor from 1 to 2 16 -1. the output frequency of the baud generator is the baud rate multiplied by 16, and this is the base frequency for the transmitter and receiver. the table in the next page illustrates the use of the baud generator with a frequency of 1.8461 mhz. in high-speed uart mode (refer to cr0c bit7 and cr0c bit6), the programmable baud generator directly uses 24 mhz and the same divisor as the normal speed divisor. in high- speed mode, the data transmission rate can be as high as 1.5m bps. 3.2.9 user-defined register (udr) (read/write) this is a temporary register that can be accessed and defined by the user.
w83977f/ W83977AF p r e l i m i n a r y publication release date: january 1997 - 52 - revision 0.50 table 3-5 baud rate table baud rate from different pre-divider pre-div: 13 1.8461m hz pre-div:1.625 14.769m hz pre-div: 1.0 24m hz decimal divisor used to generate 16x clock error percentage between desired and actual 50 400 650 2304 ** 75 600 975 1536 ** 110 880 1430 1047 0.18% 134.5 1076 1478.5 857 0.099% 150 1200 1950 768 ** 300 2400 3900 384 ** 600 4800 7800 192 ** 1200 9600 15600 96 ** 1800 14400 23400 64 ** 2000 16000 26000 58 0.53% 2400 19200 31200 48 ** 3600 28800 46800 32 ** 4800 38400 62400 24 ** 7200 57600 93600 16 ** 9600 76800 124800 12 ** 19200 153600 249600 6 ** 38400 307200 499200 3 ** 57600 460800 748800 2 ** 115200 921600 1497600 1 ** ** the percentage error for all baud rates, except where indicated otherwise, is 0.16%. note. pre-divisor is determined by crf0 of uart a and b.
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 52 - revision 0.58 4. infrared (ir) port the infrared (ir) function provides point-to-point (or multi-point to multi-point) wireless communication which can operate under various transmission protocols including irda 1.0 sir, irda 1.1 mir (1.152 mbps), irda 1.1 fir (4 mbps), sharp ask-ir, and remote control (nec, rc-5, advanced rc-5, and recs-80 protocol). 4.1 ir register description when bank select enable bit (enbnksel, the bit 0 in crf0 of logic device 6) is set, legacy ir will be switched to advanced ir, and eight register sets can then be accessible. these register sets control enhanced ir, sir, mir, or fir. also a superior traditional sir function can be used with enhanced features such as 32-byte transmitter/receiver fifos, non-encoding irq identify status register, and automatic flow control. the mir/fir and remote control registers are also defined in these register sets. structure of these register sets is shown as follows. set 0 reg 7 reg 6 reg 5 reg 4 bdl/ssr reg 2 reg 1 reg 0 set 1 set 3 set 4 set 5 set 6 set 7 set 2 all in one reg to select ssr *set 0, 1 are legacy/advanced uart registers *set 2~7 are advanced uart registers each of these register sets has a common register, namely sets select register (ssr), in order to switch to another register set. the summary description of these sets is shown in the following. set sets description 0 legacy/advanced ir control and status registers. 1 legacy baud rate divisor register. 2 advanced ir control and status registers. 3 version id and mapped control registers. 4 transmitter/receiver/timer counter registers and ir control registers. 5 flow control and ir control and frame status fifo registers. 6 ir physical layer control registers 7 remote control and ir front-end module selection registers.
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 53 - revision 0.58 4.2 set0-legacy/advanced ir control and status registers address offset register name register description 0 rbr/tbr receiver/transmitter buffer registers 1 icr interrupt control register 2 isr/ufr interrupt status or ir fifo control register 3 ucr/ssr ir control or sets select register 4 hcr handshake control register 5 usr ir status register 6 hsr handshake status register 7 udr/escr user defined register 4.2.1 set0.reg0 - receiver/transmitter buffer registers (rbr/tbr) (read/write) receiver buffer register is read only and transmitter buffer register is write only. when operate in the pio mode, the port is used to receive/transmit 8-bit data. when function as a legacy ir, this port only supports pio mode. if set in the advanced ir mode and configured as mir/fir/remote ir, this port can support dma transmission. two dma channels can be used simultaneously, one for tx dma and the other for rx dma. therefore, single dma channel is also supported when set the bit of d_chsw (dma channel swap, in set2.reg2.bit3) and the tx/rx dma channel is swapped. note that two dma channel can be defined in configure register cr2a which selects dma channel or disables dma channel. if only rx dma channel is enabled while tx dma channel is disabled, then the single dma channel will be selected. 4.2.2 set0.reg1 - interrupt control register (icr) mode b7 b6 b5 b4 b3 b2 b1 b0 legacy ir 0 0 0 0 0 eusri etbrei erdri advanced ir etmri efsfi etxthi edmai 0 eusri/ txuri etbrei erbri the advanced ir functions including advanced sir/ask-ir, mir, fir, or remote ir are described as follows. bit 7: legacy ir mode: not used. a read will return 0. advanced ir mode: etmri - enable timer interrupt a write to 1 will enable timer interrupt. bit 6: legacy ir mode: not used. a read will return 0. mir, fir mode: efsfi - enable frame status fifo interrupt a write to 1 will enable frame status fifo interrupt. advanced sir/ask-ir, remote ir: not used. bit 5: legacy ir mode: not used. a read will return 0. advanced sir/ask-ir, mir, fir, remote ir: etxthi - enable transmitter threshold interrupt a write to 1 will enable transmitter threshold interrupt.
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 54 - revision 0.58 bit 4: legacy ir mode: not used. a read will return 0. mir, fir, remote ir: edmai - enable dma interrupt. a write to 1 will enable dma interrupt. bit 3: reserved. a read will return 0. bit 2: legacy ir mode: eusri - enable usr (ir status register) interrupt a write to 1 will enable ir status register interrupt. advanced sir/ask-ir: eusri - enable usr (ir status register) interrupt a write to 1 will enable ir status register interrupt. mir, fir, remote controller: ehsri/etxuri - enable usr interrupt or enable transmitter underrun interrupt a write to 1 will enable usr interrupt or enable transmitter underrun interrupt. bit 1: etbrei - enable tbr (transmitter buffer register) empty interrupt a write to 1 will enable the transmitter buffer register empty interrupt. bit 0: erbri - enable rbr (receiver buffer register) interrupt a write to 1 will enable receiver buffer register interrupt. 4.2.3 set0.reg2 - interrupt status register/ir fifo control register (isr/ufr) 4.2.3.1 interrupt status regi ster (read only) mode b7 b6 b5 b4 b3 b2 b1 b0 legacy ir fifo enable fifo enable 0 0 iid2 iid1 iid0 ip advanced ir tmr_i fsf_i txth_i dma_i hs_i usr_i/ fend_i txemp_i rxth_i reset value 0 0 1 0 0 0 1 0 legacy ir: this register reflects the legacy ir interrupt status, which is encoded by different interrupt sources into 3 bits. bit 7, 6: these two bits are set to a logical 1 when ufr bit 0 = 1. bit 5, 4: these two bits are always logical 0. bit 3: when not in fifo mode, this bit is always 0. in fifo mode, both bit 3 and 2 are set to logical 1 when a time-out interrupt is pending. bit 2, 1: these bits identify the priority level of the pending interrupt, as shown in the table below. bit 0: this bit is a logical 1 if there is no interrupt pending. if one of the interrupt sources has occurred, this bit will be set to logical 0.
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 55 - revision 0.58 table: interrupt control function isr interrupt set and function bit 3 bit 2 bit 1 bit 0 interrupt priority interrupt type interrupt source clear interrupt 0 0 0 1 - - no interrupt pending - 0 1 1 0 first ir receive status 1. oer = 1 2. pber =1 3. nser = 1 4. sbd = 1 read usr 0 1 0 0 second rbr data ready 1. rbr data ready 2. fifo interrupt active level reached 1. read rbr 2. read rbr until fifo data under active level 1 1 0 0 second fifo data time-out data present in rx fifo for 4 characters period of time since last access of rx fifo. read rbr 0 0 1 0 third tbr empty tbr empty 1. write data into tbr 2. read isr (if priority is third) ** bit 3 of isr is enabled when bit 0 of ufr is a logical 1. advanced ir: bit 7: tmr_i - timer interrupt. set to 1 when timer count to logical 0. this bit is valid when: (1) the timer registers are defined in set4.reg0 and set4.reg1; (2) en_tmr(enable timer, in set4.reg2.bit0) is set to 1; (3) entmr_i (enable timer interrupt, in set0.reg1.bit7) is set to 1. bit 6: mir, fir modes: fsf_i - frame status fifo interrupt. set to 1 when frame status fifo is equal or larger than the threshold level or frame status fifo time-out occurs. cleared to 0 when frame status fifo is below the threshold level. advanced sir/ask-ir, remote ir modes: not used. bit 5: txth_i - transmitter threshold interrupt. set to 1 if the tbr (transmitter buffer register) fifo is below the threshold level. cleared to 0 if the tbr (transmitter buffer register) fifo is above the threshold level. bit 4: mir, fir, remote ir modes: dma_i - dma interrupt. set to 1 if the dma controller 8237a sends a tc (terminal count) to i/o device which might be a transmitter tc or a receiver tc. cleared to 0 when this register is read. bit 3: hs_i - handshake status interrupt. set to 1 when the handshake status register has a toggle. cleared to 0 when handshake status register (hsr) is read. note that in all ir modes including sir, ask- ir, mir, fir, and remote control ir, this bit defaults to be inactive unless ir handshake status enable (irhs_en) is set to 1. bit 2: advanced sir/ask-ir modes: usr_i - ir status interrupt. set to 1 when overrun error, parity error, stop bit error, or silent byte error detected and registered in the ir status register (usr). cleared to 0 when usr is read. mir, fir modes: fend_i - frame end interrupt. set to 1 when (1) a frame has a grace end to be detected where the frame signal is defined in the physical layer of irda version 1.1; (2) abort signal or illegal signal has been detected during receiving valid data. cleared to 0 when this register is read. remote controller mode: not used.
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 56 - revision 0.58 bit 1: txemp_i - transmitter empty. set to 1 when transmitter (or, say, fifo + transmitter) is empty. cleared to 0 when this register is read. bit 0: rxth_i - receiver threshold interrupt. set to 1 when (1) the receiver buffer register (rbr) is equal or larger than the threshold level; or (2) rbr time-out occurs if the receiver buffer register has valid data and below the threshold level. cleared to 0 when rbr is less than threshold level after reading rbr. 4.2.3.2 ir fifo contr ol register (ufr): mode bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 legacy ir rxftl1 (msb) rxftl0 (lsb) 0 0 0 txf_rst rxf_rst en_fifo advanced ir rxftl1 (msb) rxftl0 (lsb) txftl1 (msb) txftl0 (lsb) 0 txf_rst rxf_rst en_fifo reset value 0 0 0 0 0 0 0 0 legacy ir: this register is used to control fifo functions of the ir. bit 6, 7: these two bits are used to set the active level for the receiver fifo interrupt. for example, if the interrupt active level is set as 4 bytes and there are more than 4 data characters in the receiver fifo, the interrupt will be activated to notify cpu to read the data from fifo. table: fifo trigger level bit 7 bit 6 rx fifo interrupt active level (bytes) 0 0 01 0 1 04 1 0 08 1 1 14 bit 4, 5: reserved bit 3: when this bit is programmed to logic 1, the dma mode will change from mode 0 to mode 1 if ufr bit 0 = 1. bit 2: setting this bit to a logical 1 resets the tx fifo counter logic to its initial state. this bit will be cleared to logical 0 by itself after being set to logical 1. bit 1: setting this bit to logical 1 resets the rx fifo counter logic to its initial state. this bit will be cleared to a logical 0 by itself after being set to logical 1. bit 0: this bit enables the 16550 (fifo) mode of the ir. this bit should be set to logical 1 before other bits of ufr can be programmed.
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 57 - revision 0.58 advanced ir: bit 7, 6: rxftl1, 0 - receiver fifo threshold level its definition is the same as legacy ir. rxth_i becomes 1 when the receiver fifo threshold level is equal or larger than the defined value shown as follow. rxftl1, 0 (bit 7, 6) rx fifo threshold level ( fifo size: 16-byte ) rx fifo threshold level ( fifo size: 32-byte ) 00 1 1 01 4 4 10 8 16 11 14 26 note that the fifo size is selectable in set2.reg4. bit 5, 4: txftl1, 0 - transmitter fifo threshold level txth_i (transmitter threshold level interrupt) is set to 1 when the transmitter threshold level is less than the programmed value shown as follows. txftl1, 0 (bit 5, 4) tx fifo threshold level ( fifo size: 16-byte ) tx fifo threshold level ( fifo size: 32-byte ) 00 1 1 01 3 7 10 9 17 11 13 25 bit 3 ~0 same as in legacy ir mode 4.2.4 set0.reg3 - ir control register/set select register (ucr/ssr): these two registers share the same address. in all register sets, set select register (ssr) can be programmed to select a desired set but ir control register can only be programmed in set 0 and set 1. in other words, writing to reg3 in sets other than set 0 and set 1 will not affect ir control register. the mapping of entry set and programming value is shown as follows. ssr bits selected 7 6 5 4 3 2 1 0 hex value set 0 ?? ?? ?? ?? ?? ?? ?? ?e set 0 1 any combination except those used in set 2~7 ?e set1 1 1 1 0 0 0 0 0 0xe0 set 2 1 1 1 0 0 1 0 0 0xe4 set 3 1 1 1 0 1 0 0 0 0xe8 set 4 1 1 1 1 1 1 0 0 0xec set 5 1 1 1 1 0 0 0 0 0xf0 set 6 1 1 1 1 0 1 0 0 0xf4 set 7
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 58 - revision 0.58 4.2.5 set0.reg4 - handshake control register (hcr) mode b7 b6 b5 b4 b3 b2 b1 b0 legacy ir 0 0 0 xloop en_irq 0 0 0 advanced ir ad_md2 ad_md1 ad_md0 sir_pls tx_wt en_dma 0 0 reset value 0 1 1 0 0 0 0 0 legacy ir register: this register controls the pins of ir used for handshaking with peripherals such as modem, and controls the diagnostic mode of ir. bit 4: when this bit is set to logical 1, the legacy ir enters diagnostic mode by an internal loopback: irtx is forced to logical 0, and irrx is isolated from the communication link instead of the tsr. bit 3: the legacy ir interrupt output is enabled by setting this bit to logic 1. advanced ir register: bit 7~5 advanced sir/ask-ir, mir, fir, remote controller modes: ad_md2~0 - advanced ir/infrared mode select. these registers are active when advanced ir select (adv_sl, in set2.reg2.bit0) is set to 1. operational mode selection is defined as follows. when backward operation occurs, these registers will be reset to 0 and fall back to legacy ir mode. ad_md2~0 (bit 7, 6, 5) selected mode 000 reserved 001 low speed mir (0.576m bps) 010 advanced ask-ir 011 advanced sir 100 high speed mir (1.152m bps) 101 fir (4m bps) 110 consumer ir 111 reserved bit 4: mir, fir modes: sir_pls - send infrared pulse writing 1 to this bit will send a 2 m s long infrared pulse after physical frame end. this is to signal to sir that the high speed infrared is still in. this bit will be auto cleared by hardware. other modes: not used. bit 3: mir, fir modes: tx_wt - transmission waiting if this bit is set to 1, the transmitter will wait for tx fifo reaching threshold level or transmitter time-out before it begins to transmit data which prevents short queues of data bytes from transmitting prematurely. this is to avoid underrun. other modes: not used.
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 59 - revision 0.58 bit 2: mir, fir modes: en_dma - enable dma enable dma function for transmitting or receiving. before using this, the dma channel should be selected first. if only rx dma channel is set and tx dma channel is disabled, then the single dma channel is used. in the single channel system, the bit of d_chsw (dma channel swap, in set 2.reg2.bit3) will determine if it is rx_dma or tx_dma channel. other modes: not used. bit 1, 0: rts, dtr functional definitions is the same as in legacy ir mode. 4.2.6 set0.reg5 - ir status register (usr) mode b7 b6 b5 b4 b3 b2 b1 b0 legacy ir rfei tsre tbre sbd nser pber oer rdr advanced ir lb_infr tsre tbre mx_lex phy_err crc_err oer rdr reset value 0 0 0 0 0 0 0 0 legacy ir register: these registers are defined the same as previous description. advanced ir register: bit 7: mir, fir modes: lb_infr - last byte in frame end set to 1 when last byte of a frame is in the bottom of fifo. this bit separates one frame from another when rx fifo has more than one frame. bit 6, 5: same as legacy ir description. bit 4: mir, fir modes: mx_lex - maximum frame length exceed set to 1 when the length of a frame from the receiver has exceeded the programmed frame length defined in set4.reg6 and reg5. if this bit is set to 1, the receiver will not receive any data to rx fifo. bit 3: mir, fir modes: phy_err - physical layer error set to 1 when an illegal data symbol is received. the illegal data symbol is defined in physical layer of irda version 1.1. when this bit is set to 1, the decoder of receiver will be aborted and a frame end signal is set to 1. bit 2: mir, fir modes: crc_err - crc error set to 1 when an attached crc is erroneous. bit 1, 0: oer - overrun error, rdr - rbr data ready definitions are the same as legacy ir. 4.2.7 set0.reg6 - reserved 4.2.8 set0.reg7 - user defined register (udr/audr) mode bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 legacy ir bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 advanced ir flc_act undrn rx_bsy/ rx_ip lst_fe/ rx_pd s_fend 0 lb_sf rx_to reset value 0 0 0 0 0 0 0 0
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 60 - revision 0.58 legacy ir register: this is a temporary register that can be accessed and defined by the user. advanced ir register: bit 7 mir, fir modes: flc_act - flow control active set to 1 when the flow control occurs. cleared to 0 when this register is read. note that this will be affected by set5.reg2 which controls the sir mode switches to mir/fir mode or mir/fir mode operated in dma function switches to sir mode. bit 6 mir, fir modes: undrn - underrun set to 1 when transmitter is empty and s_fend (bit 3 of this register) is not set in pio mode or no tc (terminal count) in dma mode. cleared to 0 after a write to 1. bit 5 mir, fir modes: rx_bsy - receiver busy set to 1 when receiver is busy or active in process. remote ir mode: rx_ip - receiver in process set to 1 when receiver is in process. bit 4: mir, fir modes: lst_fe - lost frame end set to 1 when a frame end in a entire frame is lost. cleared to 0 when this register is read. remote ir modes: rx_pd - receiver pulse detected set to 1 when one or more remote pulses are detected. cleared to 0 when this register is read. bit 3 mir, fir modes: s_fend - set a frame end set to 1 when trying to terminate the frame, that is, the procedure of pio command is an entire frame = write frame data (first) + write s_fend (last) this bit should be set to 1, if use in pio mode, to avoid transmitter underrun. note that setting s_fend to 1 is equivalent to tc (terminal count) in dma mode. therefore, this bit should be set to 0 in dma mode. bit 2: reserved. bit 1: mir, fir modes: lb_sf - last byte stay in fifo a 1 in this bit indicates one or more frame ends still stay in receiver fifo. bit 0: mir, fir, remote ir modes: rx_to - receiver fifo or frame status fifo time-out set to 1 when receiver fifo or frame status fifo time-out occurs 4.3 set1 - legacy baud rate divisor register address offset register name register description 0 bll baud rate divisor latch (low byte) 1 bhl baud rate divisor latch (high byte) 2 isr/ufr interrupt status or ir fifo control register 3 ucr/ssr ir control or sets select register 4 hcr handshake control register 5 usr ir status register 6 hsr handshake status register 7 udr/escr user defined register
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 61 - revision 0.58 4.3.1 set1.reg0~1 - baud rate divisor latch (bll/bhl) these two registers of bll and bhl are baud rate divisor latch in the legacy sir/ask-ir mode. accessing these registers in advanced ir mode will cause backward operation, that is, uart will fall back to legacy sir mode and clear some register values as shown in the following table. set & register advanced mode dis_back= ?? legacy mode dis_back=0 set 0.reg 4 bit 7~5 - set 2.reg 2 bit 0, 5, 7 bit 5, 7 set 4.reg 3 bit 2, 3 - note that dis_back=1 (disable backward operation) in legacy sir/ask-ir mode will not affect any register which is meaningful in legacy sir/ask-ir. 4.3.2 set1.reg 2~7 these registers are defined as the same as set 0 registers. 4.4 set2 - interrupt status or ir fifo control register (isr/ufr) these registers are only used in advanced modes. address offset register name register description 0 abll advanced baud rate divisor latch (low byte) 1 abhl advanced baud rate divisor latch (high byte) 2 adcr1 advanced ir control register 1 3 ssr sets select register 4 adcr2 advanced ir control register 2 5 reserved - 6 txfdth transmitter fifo depth 7 rxfdth receiver fifo depth 4.4.1 reg0, 1 - advanced baud rate divisor latch (abll/abhl) these two registers are the same as legacy ir baud rate divisor latch in set 1.reg0~1. in advanced sir/ask-ir mode, user should program these registers to set baud rate. this is to prevent backward operation from occurring. 4.4.2 reg 2 - advanced ir control register 1 (adcr1) mode bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 advanced ir br_out - en_lout aloop d_chsw dmathl dma_f adv_sl reset value 0 0 0 0 0 0 0 0 bit 7: br_out - baud rate clock output when written to 1, the programmed baud rate clock will be output to dtr pin. this bit is only used to test baud rate divisor. bit 6: reserved, write 0. bit 5: en_lout - enable loopback output a write to 1 will enable transmitter to output data to irtx pin when loopback operation. internal data can be verified through an output pin by setting this bit.
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 62 - revision 0.58 bit 4: aloop - all mode loopback a write to 1 will enable loopback in all modes. bit 3: d_chsw - dma tx/rx channel swap if only one dma channel operates in mir/fir mode, then the dma channel can be swapped. d_chsw dma channel selected 0 receiver (default) 1 transmitter a write to 1 will enable output data when aloop=1. bit 2: dmathl - dma threshold level set dma threshold level as shown in the following table. dmathl tx fifo threshold rx fifo threshold 16-byte 32-byte (16/32-byte) 0 13 13 4 1 23 7 10 bit 1: dma_f - dma fairness dma_f function description 0 dma request (dreq) is forced inactive after 10.5us 1 no effect dma request. bit 0: adv_sl - advanced mode select a write to 1 selects advanced mode. 4.4.3 reg3 - sets select register (ssr) reading this register returns e0h. writing a value selects register set. reg. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 ssr ssr7 ssr6 ssr5 ssr4 ssr3 ssr2 srr1 srr0 refault value 1 1 1 0 0 0 0 0 4.4.4 reg4 - advanced ir control register 2 (adcr2) mode bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 advanced ir dis_back - pr_div1 pr_div0 rx_fsz1 rx_fsz0 tx_fsz1 txfsz0 reset value 0 0 0 0 0 0 0 0 bit 7: dis_back - disable backward operation a write to 1 disables backward legacy ir mode. when operate in legacy sir/ask-ir mode, this bit should be set to 1 to avoid backward operation. bit 6: reserved, write 0. bit 5, 4: pr_div1~0 - pre-divisor 1~0. these bits select pre-divisor for external input clock 24m hz. the clock goes through the pre-divisor then input to baud rate divisor of ir. pr_div1~0 pre-divisor max. baud rate 00 13.0 115.2k bps 01 1.625 921.6k bps 10 6.5 230.4k bps 11 1 1.5m bps
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 63 - revision 0.58 bit 3, 2: rx_fsz1~0 - receiver fifo size 1~0 these bits setup receiver fifo size when fifo is enable. rx_fsz1~0 rx fifo size 00 16 -byte 01 32 -byte 1x reserved bit 1, 0: tx_fsz1~0 - transmitter fifo size 1~0 these bits setup transmitter fifo size when fifo is enable. tx_fsz1~0 tx fifo size 00 16 -byte 01 32 -byte 1x reserved table: sir baud rate baud rate from different pre-divider pre-div: 13 1.8461m hz pre-div:1.625 14.769m hz pre-div: 1.0 24m hz decimal divisor used to generate 16x clock error percentage between desired and actual 50 400 650 2304 ** 75 600 975 1536 ** 110 880 1430 1047 0.18% 134.5 1076 1478.5 857 0.099% 150 1200 1950 768 ** 300 2400 3900 384 ** 600 4800 7800 192 ** 1200 9600 15600 96 ** 1800 14400 23400 64 ** 2000 16000 26000 58 0.53% 2400 19200 31200 48 ** 3600 28800 46800 32 ** 4800 38400 62400 24 ** 7200 57600 93600 16 ** 9600 76800 124800 12 ** 19200 153600 249600 6 ** 38400 307200 499200 3 ** 57600 460800 748800 2 ** 115200 921600 1497600 1 ** ** the percentage error for all baud rates, except where indicated otherwise, is 0.16%.
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 64 - revision 0.58 4.4.5 reg6 - transmitter fifo depth (txfdth) (read only) mode bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 advanced ir 0 0 txfd5 txfd4 txfd3 txfd2 txfd1 txfd1 reset value 0 0 0 0 0 0 0 0 bit 7~6: reserved, read 0. bit 5~0: reading these bits returns the current transmitter fifo depth, that is, the number of bytes left in the transmitter fifo. 4.4.6 reg7 - receiver fifo depth (rxfdth) (read only) mode bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 advanced ir 0 0 rxfd5 rxfd4 rxfd3 rxfd2 rxfd1 rxfd1 reset value 0 0 0 0 0 0 0 0 bit 7~6: reserved, read 0. bit 5~0: reading these bits returns the current receiver fifo depth, that is, the number of bytes left in the receiver fifo. 4.5 set3 - version id and mapped control registers address offset register name register description 0 auid advanced ir id 1 mp_ucr mapped ir control register 2 mp_ufr mapped ir fifo control register 3 ssr sets select register 4 reversed - 5 reserved - 6 reserved - 7 reserved - 4.5.1 reg0 - advanced ir id (auid) this register is read only. it stores advanced ir version id. reading it returns 1xh. reg. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 ssr ssr7 ssr6 ssr5 ssr4 ssr3 ssr2 srr1 srr0 default value 0 0 0 1 x x x x 4.5.2 reg1 - mapped ir control register (mp_ucr) this register is read only. reading this register returns ir control register value of set 0. reg. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 ssr ssr7 ssr6 ssr5 ssr4 ssr3 ssr2 srr1 srr0 default value 0 0 0 0 0 0 0 0
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 65 - revision 0.58 4.5.3 reg2 - mapped ir fifo control register (mp_ufr) this register is read only. reading this register returns ir fifo control register (ufr) value of set 0. reg. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 ssr ssr7 ssr6 ssr5 ssr4 ssr3 ssr2 srr1 srr0 default value 0 0 0 0 0 0 0 0 4.5.4 reg3 - sets select register (ssr) reading this register returns e4h. writing a value selects a register set. reg. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 ssr ssr7 ssr6 ssr5 ssr4 ssr3 ssr2 srr1 srr0 default value 1 1 1 0 0 1 0 0 4.6 set4 - tx/rx/timer counter registers and ir control registers. address offset register name register description 0 tmrl timer value low byte 1 tmrh timer value high byte 2 ir_msl infrared mode select 3 ssr sets select register 4 tfrll transmitter frame length low byte 5 tfrlh transmitter frame length high byte 6 rfrll receiver frame length low byte 7 rfrlh receiver frame length high byte 4.6.1 set4.reg0, 1 - timer value register (tmrl/tmrh) this is a 12-bit timer whose resolution is 1ms, that is, the maximum programmable time is 2 12 -1 ms. the timer is a down-counter and starts counting down when en_tmr (enable timer) of set4.reg2 is set to 1. when the timer counts down to zero and en_tmr=1, the tmr_i is set to 1 and a new initial value will be loaded into counter. 4.6.2 set4.reg2 - infrared mode select (ir_msl) mode bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 advanced ir - - - - ir_msl1 ir_msl0 tmr_tst en_tmr reset value 0 0 0 0 0 0 0 0 bit 7~4: reserved , write to 0. bit 3, 2: ir_msl1, 0 - infrared mode select select legacy ir, sir, or ask-ir mode. note that in legacy sir/ask-ir user should set dis_back=1 to avoid backward when programming baud rate. ir_msl1, 0 operation mode selected 00 legacy ir 01 cir 10 legacy ask-ir 11 legacy sir
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 66 - revision 0.58 bit 1: tmr_tst - timer test when set to 1, reading the tmrl/tmrh returns the programmed values of tmrl/tmrh instead of the value of down counter. this bit is for testing timer register. bit 0: en_tmr - enable timer a write to 1 will enable the timer. 4.6.3 set4.reg3 - set select register (ssr) reading this register returns e8h. writing this register selects register set. reg. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 ssr ssr7 ssr6 ssr5 ssr4 ssr3 ssr2 srr1 srr0 default value 1 1 1 1 1 0 0 0 4.6.4 set4.reg4, 5 - transmitter frame length (tfrll/tfrlh) reg. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 tfrll bit 7 bit 6 bit 5 bit 4 bit3 bit 2 bit 1 bit 0 reset value 0 0 0 0 0 0 0 0 tfrlh - - - bit 12 bit 11 bit 10 bit 9 bit 8 reset value - - - 0 0 0 0 0 these are combined to be a 13-bit register. writing these registers programs the transmitter frame length of a package. these registers are only valid when apm=1 (automatic package mode, set5.reg4.bit5). when apm=1, the physical layer will split data stream to a programmed frame length if the transmitted data is larger than the programmed frame length. when these registers are read, they will return the number of bytes which is not transmitted from a frame length programmed. 4.6.5 set4.reg6, 7 - receiver frame length (rfrll/rfrlh) reg. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 rfrll bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 reset value 0 0 0 0 0 0 0 0 rfrlh - - - bit 12 bit 11 bit 10 bit 9 bit 8 reset value - - - 0 0 0 0 0 these are combined to be a 13-bit registers and up counter. the length of receiver frame will be limited to the programmed frame length. if the received frame length is larger than the programmed receiver frame length, the bit of mx_lex (maximum length exceed) will be set to 1. simultaneously, the receiver will not receive any more data to rx fifo until the next start flag of the next frame, which is defined in the physical layer irda 1.1. reading these registers returns the number of received data bytes of a frame from the receiver.
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 67 - revision 0.58 4.7 set 5 - flow control and ir control and frame status fifo registers address offset register name register description 0 fcbll flow control baud rate divisor latch register (low byte) 1 fcbhl flow control baud rate divisor latch register (high byte) 2 fc_md flow control mode operation 3 ssr sets select register 4 ircfg1 infrared configure register 5 fs_fo frame status fifo register 6 rfrlfl receiver frame length fifo low byte 7 rfrlfh receiver frame length fifo high byte 4.7.1 set5.reg0, 1 - flow control baud rate divisor latch register (fcdll/ fcdhl) if flow control is enforced when uart switches mode from mir/fir to sir, then the pre-programmed baud rate of fcbll/fcbhl are loaded into advanced baud rate divisor latch (adbll/adbhl). 4.7.2 set5.reg2 - flow control mode operation (fc_md) these registers control flow control mode operation as shown in the following table. reg. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 fc_md fc_md2 fc_md1 fc_md0 - fc_dsw en_fd en_brfc en_fc reset value 0 0 0 0 0 0 0 0 bit 7~5 fc_md2 - flow control mode when flow control is enforced, these bits will be loaded into ad_md2~0 of advanced hsr (handshake status register). these three bits are defined as same as ad_md2~0. bit 4: reserved , write 0. bit 3: fc_dsw - flow control dma channel swap a write to 1 allow user to swap dma channel for transmitter or receiver when flow control is enforced. fc_dsw next mode after flow control occurred 0 receiver channel 1 transmitter channel bit 2: en_fd - enable flow dma control a write to 1 enables uart to use dma channel when flow control is enforced. bit 1: en_brfc - enable baud rate flow control a write to 1 enables fc_bll/fc_bhl (flow control baud rate divider latch, in set5.reg1~0) to be loaded into advanced baud rate divisor latch (adbll/adbhl, in set2.reg1~0). bit 0: en_fc - enable flow control a write to 1 enables flow control function and bit 7~1 of this register.
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 68 - revision 0.58 4.7.3 set5.reg3 - sets select register (ssr) writing this register selects register set. reading this register returns ech. reg. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 ssr ssr7 ssr6 ssr5 ssr4 ssr3 ssr2 srr1 srr0 default value 1 1 1 0 1 1 0 0 4.7.4 set5.reg4 - infrared configure register 1 (ircfg1) reg. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 ircfg1 - fsf_th fend_m aux_rx - - irhssl ir_full reset value 0 0 0 0 0 0 0 0 bit 7: reserved , write 0. bit 6: fsf_th - frame status fifo threshold set this bit to determine the frame status fifo threshold level and to generate the fsf_i. the threshold level values are defined as follows. fsf_th status fifo threshold level 0 2 1 4 bit 5: fend_md - frame end mode a write to 1 enables hardware to split data stream into equal length frame automatically as defined in set4.reg4 and set4.reg5, i.e., tfrll/tfrlh. bit 4: aux_rx - auxiliary receiver pin a write to 1 selects irrx input pin. (refer to set7.reg7.bit5) bit 3~2: reserved , write 0. bit 1: irhssl - infrared handshake status select when set to 0, the hsr (handshake status register) operates as same as defined in ir mode. a write to 1 will disable hsr, and reading hsr returns 30h. bit 0: ir_full - infrared full duplex operation when set to 0, ir module operates in half duplex. a write to 1 makes ir module operate in full duplex. 4.7.5 set5.reg5 - frame status fifo register (fs_fo) this register shows the bottom byte of frame status fifo. reg. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 fs_fo fsfdr lst_fr - mx_lex phy_err crc_err rx_ov fsf_ov reset value 0 0 0 0 0 0 0 0 bit 7: fsfdr - frame status fifo data ready indicate that a data byte is valid in frame status fifo bottom. bit 6: lst_fr - lost frame set to 1 when one or more frames have been lost. bit 5: reserved .
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 69 - revision 0.58 bit 4: mx_lex - maximum frame length exceed set to 1 when incoming data exceeds programmed maximum frame length defined in set4.reg6 and set4.reg7. this bit is in frame status fifo bottom and is valid only when fsfdr=1 (frame status fifo data ready). bit 3: phy_err - physical error when receiving data, any physical layer error as defined in irda 1.1 will set this bit to 1. this bit is in frame status fifo bottom and is valid only when fsfdr=1 (frame status fifo data ready). bit 2: crc_err - crc error set to 1 when receive a bad crc in a frame. this crc belongs to physical layer as defined in irda 1.1. this bit is in frame status fifo bottom and is valid only when fsfdr=1 (frame status fifo data ready). bit 1: rx_ov - received data overrun set to 1 when receiver fifo overruns. bit 0: fsf_ov - frame status fifo overrun set to 1 when frame status fifo overruns. 4.7.6 set5.reg6, 7 - receiver frame length fifo (rflfl/rflfh) or lost frame number (lst_nu) reg. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 rflfl/ lst_nu bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 reset value 0 0 0 0 0 0 0 0 rflfh - - - bit 12 bit 11 bit 10 bit 9 bit 8 reset value 0 0 0 0 0 0 0 0 receiver frame length fifo (rflfl/rflfh): these are combined to be a 13-bit register. reading these registers returns received byte count for the frame. when read, the register of rflfh will pop-up another frame status and frame length if fsfdr=1 (set5.reg4.bit7). lost frame number (lst_nu): when lst_fr=1 (set5.reg4.bit6), reg6 stands for lst_nu which is a 8-bit register holding the number of frames lost in succession. 4.8 set6 - ir physical layer control registers address offset register name register description 0 ir_cfg2 infrared configure register 2 1 mir_pw mir (1.152m bps or 0.576m bps) pulse width 2 sir_pw sir pulse width 3 ssr sets select register 4 hir_fnu high speed infrared flag number 5 reserved - 6 reserved - 7 reserved -
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 70 - revision 0.58 4.8.1 set6.reg0 - infrared configure register 2 (ir_cfg2) this register controls ask-ir, mir, fir operations. reg. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 ir_cfg2 shmd_n shdm_n fir_crc mir_crc - inv_crc dis_crc - reset value 0 0 1 0 0 0 0 0 bit 7: shmd_n - ask-ir modulation disable shmd_n modulation mode 0 irtx modulate 500k hz square wave 1 re-rout irtx bit 6: shdm_n - ask-ir demodulation disable shdm_n demodulation mode 0 demodulation 500k hz 1 re-rout irrx bit 5: fir_crc - fir (4m bps) crc type fir_crc crc type 0 16-bit crc 1 32-bit crc note that the 16/32-bit crc are defined in irda 1.1 physical layer. bit 4: mir_crc - mir (1.152m/0.576m bps) crc type mir_crc crc type 0 16-bit crc 1 32-bit crc bit 2: inv_crc - inverting crc when set to 1, the crc is inversely output in physical layer. bit 1: dis_crc - disable crc when set to 1, the transmitter does not transmit crc in physical layer. bit 0: reserved , write 1. 4.8.2 set6.reg1 - mir (1.152m/0.576m bps) pulse width reg. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 mir_pw - - - m_pw4 m_pw3 m_pw2 m_pw1 m_pw0 reset value 0 0 0 0 1 0 1 0 this 5-bit register sets mir output pulse width. m_pw4~0 mir pulse width (1.152m bps) mir output width (0.576m bps) 00000 0 ns 0 ns 00001 20.83 ns 41.66 ns 00010 41.66 (==20.83*2) ns 83.32 (==41.66*2) ns ... ... ... k 10 20.83* k 10 ns 41.66* k 10 ns ... ... ... 11111 645 ns 1290 ns
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 71 - revision 0.58 4.8.3 set6.reg2 - sir pulse width reg. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 sir_pw - - - s_pw4 s_pw3 s_pw2 s_pw1 s_pw0 reset value 0 0 0 0 0 0 0 0 this 5-bit register sets sir output pulse width. s_pw4~0 sir output pulse width 00000 3/16 bit time of ir 01101 1.6 us others 1.6 us 4.8.4 set6.reg3 - set select register select register set by writing a set number to this register. reading this register returns f0h. reg. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 ssr ssr7 ssr6 ssr5 ssr4 ssr3 ssr2 srr1 srr0 default value 1 1 1 1 0 0 0 0 4.8.5 set6.reg4 - high speed infrared beginning flag number (hir_fnu) reg. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 hir_fnu m_fg3 m_fg2 m_fg1 m_fg0 f_fl3 f_fl2 f_fl1 f_fl0 reset value 0 0 1 0 1 0 1 0 bit 7~4: m_fg3~0 - mir beginning flag number these bits define the number of transmitter start flag of mir. note that the number of mir start flag should be equal or more than two which is defined in irda 1.1 physical layer. the default value is 2. m_fg3~0 beginning flag number m_fg3~0 beginning flag number 0000 reserved 1000 10 0001 1 1001 12 0010 2 (default) 1010 16 0011 3 1011 20 0100 4 1100 24 0101 5 1101 28 0110 6 1110 32 0111 8 1111 reserved
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 72 - revision 0.58 bit 3~0: f_fg3~0 - fir beginning flag number these bits define the number of transmitter preamble flag in fir. note that the number of fir start flag should be equal to sixteen which is defined in irda 1.1 physical layer. the default value is 16. m_fg3~0 beginning flag number m_fg3~0 beginning flag number 0000 reserved 1000 10 0001 1 1001 12 0010 2 1010 16 (default) 0011 3 1011 20 0100 4 1100 24 0101 5 1101 28 0110 6 1110 32 0111 8 1111 reserved 4.9 set7 - remote control and ir module selection register s address offset register name register description 0 rir_rxc remote infrared receiver control 1 rir_txc remote infrared transmitter control 2 rir_cfg remote infrared config register 3 ssr sets select register 4 irm_sl1 infrared module (front end) select 1 5 irm_sl2 infrared module select 2 6 irm_sl3 infrared module select 3 7 irm_cr infrared module control register 4.9.1 set7.reg0 - remote infrared receiver control (rir_rxc) reg. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 rir_rxc rx_fr2 rx_fr1 rx_fr0 rx_fsl4 rx_fsl3 rx_fsl2 rx_fsl1 rx_fsl0 default value 0 0 1 0 1 0 0 1 this register defines frequency range of receiver of remote ir. bit 7~5: rx_fr2~0 - receiver frequency range 2~0. these bits select the input frequency range of the receiver. it is implemented through a band pass filter, i.e., only the input signals whose frequency lies in the range defined in this register will be received. bit 4~0: rx_fsl4~0 - receiver frequency select 4~0. select the operation frequency of receiver.
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 73 - revision 0.58 table: low frequency range select of receiver. rx_fr2~0 (low frequency) 001 010 011 rx_fsl4~0 min. max. min. max. min. max. 00010 26.1 29.6 24.7 31.7 23.4 34.2 00011 28.2 32.0 26.7 34.3 25.3 36.9 00100 29.4 33.3 27.8 35.7 26.3 38.4 00101 30.0 34.0 28.4 36.5 26.9 39.3 00110 31.4 35.6 29.6 38.1 28.1 41.0 00111 32.1 36.4 30.3 39.0 28.7 42.0 01000 32.8 37.2 31.0 39.8 29.4 42.9 01001 33.6* 38.1* 31.7 40.8 30.1 44.0 01011 34.4 39.0 32.5 41.8 30.8 45.0 01100 36.2 41.0 34.2 44.0 32.4 47.3 01101 37.2 42.1 35.1 45.1 33.2 48.6 01111 38.2 43.2 36.0 46.3 34.1 49.9 10000 40.3 45.7 38.1 49.0 36.1 52n.7 10010 41.5 47.1 39.2 50.4 37.2 54.3 10011 42.8 48.5 40.4 51.9 38.3 56.0 10101 44.1 50.0 41.7 53.6 39.5 57.7 10111 45.5 51.6 43.0 55.3 40.7 59.6 11010 48.7 55.2 46.0 59.1 43.6 63.7 11011 50.4 57.1 47.6 61.2 45.1 65.9 11101 54.3 61.5 51.3 65.9 48.6 71.0 note that those unassigned combinations are reserved. table: high frequency range select of receiver rx_fr2~0 (high frequency) 001 rx_fsl4~0 min. max. 00011 355.6 457.1 01000 380.1 489.8 01011 410.3 527.4 note that those unassigned combinations are reserved. table: sharp ask-ir receiver frequency range select. rx_fsl4~0 (sharp ask-ir) rx_fr2~0 001 010 011 100 101 110 - 480.0* 533.3* 457.1 564.7 436.4 600.0 417.4 640.0 400.0 685.6 384.0 738.5 note that those unassigned combinations are reserved.
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 74 - revision 0.58 4.9.2 set7.reg1 - remote infrared transmitter control (rir_txc) reg. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 rir_txc tx_pw2 tx_pw1 tx_pw0 tx_fsl4 tx_fsl3 tx_fsl2 tx_fsl1 tx_fsl0 default value 0 1 1 0 1 0 0 1 this register defines the transmitter frequency and pulse width of remote ir. bit 7~5: tx_pw2~0 - transmitter pulse width 2~ 0. select the transmission pulse width. tx_pw2~0 low frequency high frequency 010 6 m s 0.7 m s 011 7 m s 0.8 m s 100 9 m s 0.9 m s 101 10.6 m s 1.0 m s note that those unassigned combinations are reserved. bit 4~0: tx_fsl4~0 - transmitter frequency select 4~0. select the transmission frequency. table: low frequency selected. tx_fsl4~0 low frequency 00011 30k hz 00100 31k hz ... ... 11101 56k hz note that those unassigned combinations are reserved. table: high frequency selected. tx_fsl4~0 high frequency 00011 400k hz 01000 450k hz 01011 480k hz note that those unassigned combinations are reserved. 4.9.3 set7.reg2 - remote infrared co nfig register (rir_cfg) reg. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 rir_cfg p_pnb smp_m rxcfs - tx_cfs rx_dm tx_mm1 tx_mm0 default value 0 0 0 0 0 0 0 0
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 75 - revision 0.58 bit 7: p_pnb: programming pulse number coding. write a 1 to select programming pulse number coding. the code format is defined as follows. b7 b6 b5 b4 b2 b1 b0 b3 bit value (number of bits) - 1 if the bit value is set to 0, the high pulse will be transmitted/received. if the bit value is set to 1, then no energy will be transmitted/received. bit 6: smp_m - sampling mode. to select receiver sampling mode. when set to 0 then uses t-period sampling, that the t-period is programmed ir baud rate. when set to 1, programmed baud rate will be used to do oversampling. bit 5: rxcfs - receiver carry frequency select rxcfs selected frequency 0 30k ~ 56k hz 1 400k ~ 480k hz bit 4: reserved, write 0. bit 3: tx_cfs - transmitter carry frequency select. select low speed or high speed transmitter carry frequency. tx_fcs selected frequency 0 30k ~ 56k hz 1 400k ~ 480k hz bit 2: rx_dm - receiver demodulation mode. rx_dm demodulation mode 0 enable internal decoder 1 disable internal decoder bit 1~0: tx_mm1~0 - transmitter modulation mode 1~0 tx_mm1~0 tx modulation mode 00 continuously send pulse for logic 0 01 8 pulses for logic 0 and no pulse for logic 1. 10 6 pulses for logic 0 and no pulse for logic 1 11 reserved. 4.9.4 set7.reg3 - sets select register (ssr) reg. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 ssr bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 default value 1 1 1 1 0 1 0 0 reading this register returns f4h. select register set by writing a set number to this register.
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 76 - revision 0.58 4.9.5 set7.reg4 - infrared module (front end) select 1 (irm_sl1) reg. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 irm_sl1 ir_msp sir_sl2 sir_sl1 sir_sl0 - air_sl2 air_sl1 air_sl0 default value 0 0 0 0 0 0 0 0 bit 7: ir_msp - ir mode select pulse when set to 1, the transmitter (irtx) will send a 64 m s pulse to setup a special ir front- end operational mode. when ir front-end module uses mode select pin (md) and transmitter ir pulse (irtx) to switch between high speed ir (such as fir or mir) and low speed ir (sir or ask-ir), this bit should be used. bit 6~4: sir_sl2~0 - sir (serial ir) mode select. these bits are used to program the operational mode of the sir front-end module. these values of sir_sl2~0 will be automatically loaded to pins of ir_sl2~0, respectively, when (1) am_fmt=1 (automatic format, in set7.reg7.bit7); (2) the mode of advanced ir is set to sir (ad_md2~0, in set0.reg4.bit7~0). bit 3: reserved, write 0. bit 2~0: air_sl2~0 - ask-ir mode select. these bits setup the operational mode of ask-ir front-end module when am_fmt=1 and ad_md2~0 are configured to ask-ir mode. these values will be automatically loaded to ir_sl2~0, respectively. 4.9.6 set7.reg5 - infrared module (front end) select 2 (irm_sl2) reg. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 irm_sl2 - fir_sl2 fir_sl1 fir_sl0 - mir_sl2 mir_sl1 mir_sl0 default value 0 0 0 0 0 0 0 0 bit 7: reserved, write 0. bit 6~4: fir_sl2~0 - fir mode select. these bits setup the operational mode of fir front-end module when am_fmt=1 and ad_md2~0 are configured to fir mode. these values will be automatically loaded to ir_sl2~0, respectively. bit 3: reserved, write 0. bit 2~0: mir_sl2~0 - mir mode select. these bits setup the mir operational mode when am_fmt=1 and ad_md2~0 are configured to mir mode. these values will be automatically loaded to ir_sl2~0, respectively. 4.9.7 set7.reg6 - infrared module (front end) select 3 (irm_sl3) reg. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 irm_sl3 - lrc_sl2 lrc_sl1 lrc_sl0 - hrc_sl2 hrc_sl1 hrc_sl0 default value 0 0 0 0 0 0 0 0 bit 7: reserved, write 0. bit 6~4: lrc_sl2~0 - low speed remote ir mode select. these bits setup the operational mode of low speed remote ir front-end module when am_fmt=1 and ad_md2~0 are configured to remote ir mode. these values will be automatically loaded to ir_sl2~0, respectively.
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 77 - revision 0.58 bit 3: reserved, write 0. bit 2~0: hrc_sl2~0 - high speed remote ir mode select. these bits setup the operational mode of high speed remote ir front-end module when am_fmt=1 and .ad_md2~0 are configured to remote ir mode. these values will be automatically loaded to ir_sl2~0, respectively. 4.9.8 set7.reg7 - infrared module control register (irm_cr) reg. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 irm_cr am_fmt irx_msl irsl0d rxinv txinv - - - default value 0 0 0 0 0 0 0 0 bit 7: am_fmt - automatic format a write to 1 will enable automatic format ir front-end module. these bit will affect the output of ir_sl2~0 which is referred by ir front-end module selection (set7.reg4~6) bit 6: irx_msl - ir receiver module select select the receiver input path from the ir front end module if ir module has the separated high speed and low speed receiver path. if the ir module has only one receiving path, then this bit should be set to 0. irx_msl receiver pin selected 0 irrx (low/high speed) 1 irrxh (high speed) bit 5: irsl0d - direction of irsl0 pin select function for irrxh or irsl0 because they share common pin and have different input/output direction. irsl0_d function 0 irrxh (i/p) 1 irsl0 (o/p) table: ir receiver input pin selection irsl0d irx_msl aux_rx high speed ir selected ir pin 0 0 0 x irrx 0 0 1 x irrxh 0 1 x 0 irrx 0 1 x 1 irrxh 1 0 0 x irrx 1 0 1 x reserved 1 1 x 0 irrx 1 1 x 1 reserved note: that (1) aux_rx is defined in set5.reg4.bit4, (2) high speed ir includes mir (1.152m or 0.576m bps) and fir (4m bps), (3) irrx is the input of the low speed or high speed ir receiver, irrxh is the input of the high speed ir receiver. bit 4: rxinv - receiving signal invert a write to 1 will invert the receiving signal. bit 3: txinv - transmitting signal invert a write to 1 will invert the transmitting signal. bit 2~0: reserved, write 0.
w83977f/ W83977AF p r e l i m i n a r y publication release date: january 1997 - 78 - revision 0.50 5. parallel port 5.1 printer interface logic the parallel port of the w83977f/ af makes possible the attachment of various devices that accept eight bits of parallel data at standard ttl level. the w83977f/ af supports an ibm xt/at compatible parallel port (spp), bi-directional parallel port (bpp), enhanced parallel port (epp), extended capabilities parallel port (ecp), extension fdd mode (extfdd), extension 2fdd mode (ext2fdd) on the parallel port. refer to the configuration registers for more information on disabling, power-down, and on selecting the mode of operation. table 5-1 shows the pin definitions for different modes of the parallel port. table 5-1-1 parallel port connector and pin definitions host connector pin number of w83977f/ af pin attribute spp epp ecp 1 36 o nstb nwrite nstb, hostclk 2 2-9 31-26, 24-23 i/o pd<0:7> pd<0:7> pd<0:7> 10 22 i nack intr nack, periphclk 2 11 21 i busy nwait busy, periphack 2 12 19 i pe pe peerror, nackreverse 2 13 18 i slct select slct, xflag 2 14 35 o nafd ndstrb nafd, hostack 2 15 34 i nerr nerror nfault 1 , nperiphrequest 2 16 33 o ninit ninit ninit 1 , nreverserqst 2 17 32 o nslin nastrb nslin 1 , ecpmode 2 notes: n : active low 1. compatible mode 2. high speed mode 3. for more information, refer to the ieee 1284 standard. table 5-1-2 parallel port connector and pin definitions host connector pin number of w83977f/ af pin attribute spp pin attribute ext2fdd pin attribute extfdd 1 36 o nstb --- --- --- --- 2 31 i/o pd0 i index 2 i index 2 3 30 i/o pd1 i trak 02 i trak 02 4 29 i/o pd2 i wp 2 i wp 2 5 28 i/o pd3 i rdata 2 i rdata 2 6 27 i/o pd4 i dskchg 2 i dskchg 2 7 26 i/o pd5 --- --- --- ---
w83977f/ W83977AF p r e l i m i n a r y publication release date:march 1998 - 79 - revision 0.58 table 5-1-2, continued host connector pin number of w83977f/ af pin attribute spp pin attribute ext2fdd pin attribute extfdd 8 24 i/o pd6 od moa 2 --- --- 9 23 i/o pd7 od dsa 2 --- --- 10 22 i nack od dsb 2 od dsb 2 11 21 i busy od mob 2 od mob 2 12 19 i pe od wd 2 od wd 2 13 18 i slct od we 2 od we 2 14 35 o nafd od rwc 2 od rwc 2 15 34 i nerr od head2 od head2 16 33 o ninit od dir 2 od dir 2 17 32 o nslin od step 2 od step 2 5.2 enhanced parallel port (epp) table 5-2 printer mode and epp register address a2 a1 a0 register note 0 0 0 data port (r/w) 1 0 0 1 printer status buffer (read) 1 0 1 0 printer control latch (write) 1 0 1 0 printer control swapper (read) 1 0 1 1 epp address port (r/w) 2 1 0 0 epp data port 0 (r/w) 2 1 0 1 epp data port 1 (r/w) 2 1 1 0 epp data port 2 (r/w) 2 1 1 1 epp data port 2 (r/w) 2 notes: 1. these registers are available in all modes. 2. these registers are available only in epp mode. 5.2.1 data swapper the system microprocessor can read the contents of the printer's data latch by reading the data swapper.
w83977f/ W83977AF p r e l i m i n a r y publication release date: january 1997 - 80 - revision 0.50 5.2.2 printer status buffer the system microprocessor can read the printer status by reading the address of the printer status buffer. the bit definitions are as follows: 1 1 1 2 3 5 4 6 7 0 tmout error slct pe busy ack bit 7: this signal is active during data entry, when the printer is off-line during printing, when the print head is changing position, or during an error state. when this signal is active, the printer is busy and cannot accept data. bit 6: this bit represents the current state of the printer's ack signal. a 0 means the printer has received a character and is ready to accept another. normally, this signal will be active for approximately 5 microseconds before busy stops. bit 5: logical 1 means the printer has detected the end of paper. bit 4: logical 1 means the printer is selected. bit 3: logical 0 means the printer has encountered an error condition. bit 1, 2: these two bits are not implemented and are logic one during a read of the status register. bit 0: this bit is valid in epp mode only. it indicates that a 10 m s time-out has occurred on the epp bus. a logic 0 means that no time-out error has occurred; a logic 1 means that a time-out error has been detected. writing a logic 1 to this bit will clear the time-out status bit; writing a logic 0 has no effect. 5.2.3 printer control latch and printer control swapper the system microprocessor can read the contents of the printer control latch by reading the printer control swapper. bit definitions are as follows: 1 1 1 2 3 4 5 6 7 0 strobe auto fd slct in irq enable dir init
w83977f/ W83977AF p r e l i m i n a r y publication release date:march 1998 - 81 - revision 0.58 bit 7, 6: these two bits are a logic one during a read. they can be written. bit 5: direction control bit when this bit is a logic 1, the parallel port is in input mode (read); when it is a logic 0, the parallel port is in output mode (write). this bit can be read and written. in spp mode, this bit is invalid and fixed at zero. bit 4: a 1 in this position allows an interrupt to occur when ack changes from low to high. bit 3: a 1 in this bit position selects the printer. bit 2: a 0 starts the printer (50 microsecond pulse, minimum). bit 1: a 1 causes the printer to line-feed after a line is printed. bit 0: a 0.5 microsecond minimum high active pulse clocks data into the printer. valid data must be present for a minimum of 0.5 microseconds before and after the strobe pulse. 5.2.4 epp address port the address port is available only in epp mode. bit definitions are as follows: 1 2 3 4 5 6 7 0 pd0 pd1 pd2 pd3 pd5 pd4 pd6 pd7 the contents of db0-db7 are buffered (non-inverting) and output to ports pd0-pd7 during a write operation. the leading edge of iow c auses an epp address write cycle to be performed, and the trailing edge of iow latches the data for the duration of the epp write cycle. pd0-pd7 ports are read during a read operation. the leading edge of ior causes an epp address read cycle to be performed and the data to be output to the host cpu.
w83977f/ W83977AF p r e l i m i n a r y publication release date: january 1997 - 82 - revision 0.50 5.2.5 epp data port 0-3 these four registers are available only in epp mode. bit definitions of each data port are as follows: 1 2 3 4 5 6 7 0 pd0 pd1 pd2 pd3 pd4 pd5 pd6 pd7 when accesses are made to any epp data port, the contents of db0-db7 are buffered (non- inverting) and output to the ports pd0-pd7 during a write operation. the leading edge of iow causes an epp data write cycle to be performed, and the trailing edge of iow latches the data for the duration of the epp write cycle. during a read operation, ports pd0-pd7 are read, and the leading edge of ior causes an epp read cycle to be performed and the data to be output to the host cpu. 5.2.6 bit map of parallel port and epp registers register 7 6 5 4 3 2 1 0 data port (r/w) pd7 pd6 pd5 pd4 pd3 pd2 pd1 pd0 status buffer (read) busy ack pe slct error 1 1 tmout control swapper (read) 1 1 1 irqen slin init autofd strobe control latch (write) 1 1 dir irq slin init autofd strobe epp address port r/w) pd7 pd6 pd5 pd4 pd3 pd2 pd1 pd0 epp data port 0 (r/w) pd7 pd6 pd5 pd4 pd3 pd2 pd1 pd0 epp data port 1 (r/w) pd7 pd6 pd5 pd4 pd3 pd2 pd1 pd0 epp data port 2 (r/w) pd7 pd6 pd5 pd4 pd3 pd2 pd1 pd0 epp data port 3 (r/w) pd7 pd6 pd5 pd4 pd3 pd2 pd1 pd0
w83977f/ W83977AF p r e l i m i n a r y publication release date:march 1998 - 83 - revision 0.58 5.2.7 epp pin descriptions epp name type epp description nwrite o denotes an address or data read or write operation. pd<0:7> i/o bi-directional epp address and data bus. intr i used by peripheral device to interrupt the host. nwait i inactive to acknowledge that data transfer is completed. active to indicate that the device is ready for the next transfer. pe i paper end; same as spp mode. select i printer selected status; same as spp mode. ndstrb o this signal is active low. it denotes a data read or write operation. nerror i error; same as spp mode. ninits o this signal is active low. when it is active, the epp device is reset to its initial operating mode. nastrb o this signal is active low. it denotes an address read or write operation. 5.2.8 epp ope ration when the epp mode is selected in the configuration register, the standard and bi-directional modes are also available. the pdx bus is in the standard or bi-directional mode when no epp read, write, or address cycle is currently being executed. in this condition all output signals are set by the spp control port and the direction is controlled by dir of the control port. a watchdog timer is required to prevent system lockup. the timer indicates that more than 10 m s have elapsed from the start of the epp cycle to the time wait is deasserted. the current epp cycle is aborted when a time-out occurs. the time-out condition is indicated in status bit 0. 5.2.8.1 epp operation the epp operates on a two-phase cycle. first, the host selects the register within the device for subsequent operations. second, the host performs a series of read and/or write byte operations to the selected register. four operations are supported on the epp: address write, data write, address read, and data read. all operations on the epp device are performed asynchronously. 5.2.8.2 epp version 1.9 operation the epp read/write operation can be completed under the following conditions: a. if the nwait is active low, when the read cycle (nwrite inactive high, ndstrb/nastrb active low) or write cycle (nwrite active low, ndstrb/nastrb active low) starts, the read/write cycle proceeds normally and will be completed when nwait goes inactive high. b. if nwait is inactive high, the read/write cycle will not start. it must wait until nwait changes to active low, at which time it will start as described above. 5.2.8.3 epp version 1.7 operation the epp read/write cycle can start without checking whether nwait is active or inactive. once the read/write cycle starts, however, it will not terminate until nwait changes from active low to inactive high.
w83977f/ W83977AF p r e l i m i n a r y publication release date: january 1997 - 84 - revision 0.50 5.3 extended capabilities parallel (ecp) port this port is software and hardware compatible with existing parallel ports, so it may be used as a standard printer mode if ecp is not required. it provides an automatic high burst-bandwidth channel that supports dma for ecp in both the forward (host to peripheral) and reverse (peripheral to host) directions. small fifos are used in both forward and reverse directions to improve the maximum bandwidth requirement. the size of the fifo is 16 bytes. the ecp port supports an automatic handshake for the standard parallel port to improve compatibility mode transfer speed. the ecp port supports run-length-encoded (rle) decompression (required) in hardware. compression is accomplished by counting identical bytes and transmitting an rle byte that indicates how many times the next byte is to be repeated. hardware support for compression is optional. for more information about the ecp protocol, refer to the extended capabilities port protocol and isa interface standard. 5.3.1 ecp register and mode definitions name address i/o ecp modes function data base+000h r/w 000-001 data register ecpafifo base+000h r/w 011 ecp fifo (address) dsr base+001h r all status register dcr base+002h r/w all control register cfifo base+400h r/w 010 parallel port data fifo ecpdfifo base+400h r/w 011 ecp fifo (data) tfifo base+400h r/w 110 test fifo cnfga base+400h r 111 configuration register a cnfgb base+401h r/w 111 configuration register b ecr base+402h r/w all extended control register note: the base addresses are specified by cr23, which are determined by configuration register or hardware setting. mode description 000 spp mode 001 ps/2 parallel port mode 010 parallel port data fifo mode 011 ecp parallel port mode 100 epp mode (if this option is enabled in the cr9 and cr0 to select ecp/epp mode) 101 reserved 110 test mode 111 configuration mode note: the mode selection bits are bit 7-5 of the extended control register.
w83977f/ W83977AF p r e l i m i n a r y publication release date:march 1998 - 85 - revision 0.58 5.3.2 data and ecpafifo port modes 000 (spp) and 001 (ps/2) (data port) during a write operation, the data register latches the contents of the data bus on the rising edge of the input. the contents of this register are output to the pd0-pd7 ports. during a read operation, ports pd0-pd7 are read and output to the host. the bit definitions are as follows: 7 6 5 4 3 2 1 0 pd0 pd1 pd2 pd3 pd4 pd5 pd6 pd7 mode 011 (ecp fifo-address/rle) a data byte written to this address is placed in the fifo and tagged as an ecp address/rle. the hardware at the ecp port transmits this byte to the peripheral automatically. the operation of this register is defined only for the forward direction. the bit definitions are as follows: 7 6 5 4 3 2 1 0 address or rle address/rle 5.3.3 device status register (dsr) these bits are at low level during a read of the printer status register. the bits of this status register are defined as follows: 7 6 5 4 3 2 1 0 nfault select perror nack nbusy 1 1 1
w83977f/ W83977AF p r e l i m i n a r y publication release date: january 1997 - 86 - revision 0.50 bit 7: this bit reflects the complement of the busy input. bit 6: this bit reflects the nack input. bit 5: this bit reflects the perror input. bit 4: this bit reflects the select input. bit 3: this bit reflects the nfault input. bit 2-0: these three bits are not implemented and are always logic one during a read. 5.3.4 device control register (dcr) the bit definitions are as follows: 7 6 5 4 3 2 1 0 1 1 strobe autofd ninit selectin ackinten direction bit 6, 7: these two bits are logic one during a read and cannot be written. bit 5: this bit has no effect and the direction is always out if mode = 000 or mode = 010. direction is valid in all other modes. 0 the parallel port is in output mode. 1 the parallel port is in input mode. bit 4: interrupt request enable. when this bit is set to a high level, it may be used to enable interrupt requests from the parallel port to the cpu due to a low to high transition on the ack input. bit 3: this bit is inverted and output to the slin output. 0 the printer is not selected. 1 the printer is selected. bit 2: this bit is output to the init output. bit 1: this bit is inverted and output to the afd output. bit 0: this bit is inverted and output to the stb output.
w83977f/ W83977AF p r e l i m i n a r y publication release date:march 1998 - 87 - revision 0.58 5.3.5 c fifo (parallel port data fifo) mode = 010 this mode is defined only for the forward direction. the standard parallel port protocol is used by a hardware handshake to the peripheral to transmit bytes written or dmaed from the system to this fifo. transfers to the fifo are byte aligned. 5.3.6 ecpdfifo (ecp data fifo) mode = 011 when the direction bit is 0, bytes written or dmaed from the system to this fifo are transmitted by a hardware handshake to the peripheral using the ecp parallel port protocol. transfers to the fifo are byte aligned. when the direction bit is 1, data bytes from the peripheral are read under automatic hardware handshake from ecp into this fifo. reads or dmas from the fifo will return bytes of ecp data to the system. 5.3.7 tfifo (test fifo mode) mode = 110 data bytes may be read, written, or dmaed to or from the system to this fifo in any direction. data in the tfifo will not be transmitted to the parallel port lines. however, data in the tfifo may be displayed on the parallel port data lines. 5.3.8 cnfga (configuration register a) mode = 111 this register is a read-only register. when it is read, 10h is returned. this indicates to the system that this is an 8-bit implementation. 5.3.9 cnfgb (configuration register b) mode = 111 the bit definitions are as follows: 7 6 5 4 3 2 1 0 1 1 1 intrvalue compress irqx 0 irqx 1 irqx 2 bit 7: this bit is read-only. it is at low level during a read. this means that this chip does not support hardware rle compression. bit 6: returns the value on the isa irq line to determine possible conflicts.
w83977f/ W83977AF p r e l i m i n a r y publication release date: january 1997 - 88 - revision 0.50 bit 5-3: reflect the irq resource assigned for ecp port. cnfgb[5:3] irq resource 000 reflect other irq resources selected by pnp register (default) 001 irq7 010 irq9 011 irq10 100 irq11 101 irq14 110 irq15 111 irq5 bit 2-0: these five bits are at high level during a read and can be written . 5.3.10 ecr (extended control register) mode = all this register controls the extended ecp parallel port functions. the bit definitions are follows: 7 6 5 4 3 2 1 0 empty full service intr dmaen nerrintren mode mode mode bit 7-5: these bits are read/write and select the mode. 000 standard parallel port mode. the fifo is reset in this mode. 001 ps/2 parallel port mode. this is the same as 000 except that direction may be used to tri-state the data lines and reading the data register returns the value on the data lines and not the value in the data register. 010 parallel port fifo mode. this is the same as 000 except that bytes are written or dmaed to the fifo. fifo data are automatically transmitted using the standard parallel port protocol. this mode is useful only when direction is 0. 011 ecp parallel port mode. when the direction is 0 (forward direction), bytes placed into the ecpdfifo and bytes written to the ecpafifo are placed in a single fifo and auto transmitted to the peripheral using ecp protocol. when the direction is 1 (reverse direction), bytes are moved from the ecp parallel port and packed into bytes in the ecpdfifo. 100 selects epp mode. in this mode, epp is activated if the epp mode is selected. 101 reserved. 110 test mode. the fifo may be written and read in this mode, but the data will not be transmitted on the parallel port. 111 configuration mode. the confga and confgb registers are accessible at 0x400 and 0x401 in this mode.
w83977f/ W83977AF p r e l i m i n a r y publication release date:march 1998 - 89 - revision 0.58 bit 4: read/write (valid only in ecp mode) 1 disables the interrupt generated on the asserting edge of nfault. 0 enables an interrupt pulse on the high to low edge of nfault. if nfault is asserted (interrupt) an interrupt will be generated and this bit is written from a 1 to 0. bit 3: read/write 1 enables dma. 0 disables dma unconditionally. bit 2: read/write 1 disables dma and all of the service interrupts. 0 enables one of the following cases of interrupts. when one of the service interrupts has occurred, the serviceintr bit is set to a 1 by hardware. this bit must be reset to 0 to re-enable the interrupts. writing a 1 to this bit will not cause an interrupt. (a) dmaen = 1: during dma this bit is set to a 1 when terminal count is reached. (b) dmaen = 0 direction = 0: this bit is set to 1 whenever there are writeintr threshold or more bytes free in the fifo. (c) dmaen = 0 direction = 1: this bit is set to 1 whenever there are readintr threshold or more valid bytes to be read from the fifo. bit 1: read only 0 the fifo has at least 1 free byte. 1 the fifo cannot accept another byte or the fifo is completely full. bit 0: read only 0 the fifo contains at least 1 byte of data. 1 the fifo is completely empty. 5.3.11 bit map of ecp port registers d7 d6 d5 d4 d3 d2 d1 d0 note data pd7 pd6 pd5 pd4 pd3 pd2 pd1 pd0 ecpafifo addr/rle address or rle field 2 dsr nbusy nack perror select nfault 1 1 1 1 dcr 1 1 directio ackinten selectin ninit autofd strobe 1 cfifo parallel port data fifo 2 ecpdfifo ecp data fifo 2 tfifo test fifo 2 cnfga 0 0 0 1 0 0 0 0 cnfgb compress intrvalue 1 1 1 1 1 1 ecr mode nerrintren dmaen serviceintr full empty notes: 1. these registers are available in all modes. 2. all fifos use one common 16-byte fifo.
w83977f/ W83977AF p r e l i m i n a r y publication release date: january 1997 - 90 - revision 0.50 5.3.12 ecp pin descriptions name type description nstrobe (hostclk) o the nstrobe registers data or address into the slave on the asserting edge during write operations. this signal handshakes with busy. pd<7:0> i/o these signals contains address or data or rle data. nack (periphclk) i this signal indicates valid data driven by the peripheral when asserted. this signal handshakes with nautofd in reverse. busy (periphack) i this signal deasserts to indicate that the peripheral can accept data. it indicates whether the data lines contain ecp command information or data in the reverse direction. when in reverse direction, normal data are transferred when busy (periphack) is high and an 8-bit command is transferred when it is low. perror (nackreverse) i this signal is used to acknowledge a change in the direction of the transfer (asserted = forward). the peripheral drives this signal low to acknowledge nreverserequest. the host relies upon nackreverse to determine when it is permitted to drive the data bus. select (xflag) i indicates printer on line. nautofd (hostack) o requests a byte of data from the peripheral when it is asserted. this signal indicates whether the data lines contain ecp address or data in the forward direction. when in forward direction, normal data are transferred when nautofd (hostack) is high and an 8-bit command is transferred when it is low. nfault (nperiphrequest) i generates an error interrupt when it is asserted. this signal is valid only in the forward direction. the peripheral is permitted (but not required) to drive this pin low to request a reverse transfer during ecp mode. ninit (nreverserequest) o this signal sets the transfer direction (asserted = reverse, deasserted = forward). this pin is driven low to place the channel in the reverse direction. nselectin (ecpmode) o this signal is always deasserted in ecp mode.
w83977f/ W83977AF p r e l i m i n a r y publication release date:march 1998 - 91 - revision 0.58 5.3.13 ecp operation the host must negotiate on the parallel port to determine if the peripheral supports the ecp protocol before ecp operation. after negotiation, it is necessary to initialize some of the port bits. the following are required: (a) set direction = 0, enabling the drivers. (b) set strobe = 0, causing the nstrobe signal to default to the deasserted state. (c) set autofd = 0, causing the nautofd signal to default to the deasserted state. (d) set mode = 011 (ecp mode) ecp address/rle bytes or data bytes may be sent automatically by writing the ecpafifo or ecpdfifo, respectively. 5.3.13.1 mode switching software will execute p1284 negotiation and all operations prior to a data transfer phase under programmed i/o control (mode 000 or 001). hardware provides an automatic control line handshake, moving data between the fifo and the ecp port only in the data transfer phase (mode 011 or 010). if the port is in mode 000 or 001 it may switch to any other mode. if the port is not in mode 000 or 001 it can only be switched into mode 000 or 001. the direction can be changed only in mode 001. when in extended forward mode, the software should wait for the fifo to be empty before switching back to mode 000 or 001. in ecp reverse mode the software waits for all the data to be read from the fifo before changing back to mode 000 or 001. 5.3.13.2 command/data ecp mode allows the transfer of normal 8-bit data or 8-bit commands. in the forward direction, normal data are transferred when hostack is high and an 8-bit command is transferred when hostack is low. the most significant bits of the command indicate whether it is a run-length count (for compression) or a channel address. in the reverse direction, normal data are transferred when periphack is high and an 8-bit command is transferred when periphack is low. the most significant bit of the command is always zero. 5.3.13.3 data compression the w83977f/ af supports run length encoded (rle) decompression in hardware and can transfer compressed data to a peripheral. note that the odd (rle) compression in hardware is not supported. in order to transfer data in ecp mode, the compression count is written to the ecpafifo and the data byte is written to the ecpdfifo. 5.3.14 fifo operation the fifo threshold is set in configuration register 5. all data transfers to or from the parallel port can proceed in dma or programmed i/o (non-dma) mode, as indicated by the selected mode. the fifo is used by selecting the parallel port fifo mode or ecp parallel port mode. after a reset, the fifo is disabled.
w83977f/ W83977AF p r e l i m i n a r y publication release date: january 1997 - 92 - revision 0.50 5.3.15 dma transfers dma transfers are always to or from the ecpdfifo, tfifo, or cfifo. the dma uses the standard pc dma services. the ecp requests dma transfers from the host by activating the pdrq pin. the dma will empty or fill the fifo using the appropriate direction and mode. when the terminal count in the dma controller is reached, an interrupt is generated and serviceintr is asserted, which will disable the dma. 5.3.16 programmed i/o (non-dma) mode the ecp or parallel port fifos can also be operated using interrupt driven programmed i/o. programmed i/o transfers are to the ecpdfifo at 400h and ecpafifo at 000h or from the ecpdfifo located at 400h, or to/from the tfifo at 400h. the host must set the direction, state, dmaen = 0 and serviceintr = 0 in the programmed i/o transfers. the ecp requests programmed i/o transfers from the host by activating the irq pin. the programmed i/o will empty or fill the fifo using the appropriate direction and mode. 5.4 extension fdd mode (extfdd) in this mode, the w83977f/ af changes the printer interface pins to fdc input/output pins, allowing the user to install a second floppy disk drive (fdd b) through the db-25 printer connector. the pin assignments for the fdc input/output pins are shown in table 5-1. after the printer interface is set to extfdd mode, the following occur: (1) pins mob and dsb will be forced to inactive state. (2) pins dskchg , rdata , wp , trak 0 , index will be logically ored with pins pd4-pd0 to serve as input signals to the fdc. (3) pins pd4-pd0 each will have an internal resistor of about 1k ohm to serve as pull-up resistor for fdd open drain/collector output. (4) if the parallel port is set to extfdd mode after the system has booted dos or another operating system, a warm reset is needed to enable the system to recognize the extension floppy drive. 5.5 extension 2fdd mode (ext2fdd) in this mode, the w83977f/ af changes the printer interface pins to fdc input/output pins, allowing the user to install two external floppy disk drives through the db-25 printer connector to replace internal floppy disk drives a and b. the pin assignments for the fdc input/output pins are shown in table5-1. after the printer interface is set to extfdd mode, the following occur: (1) pins moa , dsa , mob , and dsb will be forced to inactive state. (2) pins dskchg , rdata , wp , trak 0 , and index will be logically ored with pins pd4-pd0 to serve as input signals to the fdc. (3) pins pd4-pd0 each will have an internal resistor of about 1k ohm to serve as pull-up resistor for fdd open drain/collector output. (4) if the parallel port is set to ext2fdd mode after the system has booted dos or another operating system, a warm reset is needed to enable the system to recognize the extension floppy drive.
w83977f/ W83977AF p r e l i m i n a r y publication release date:march 1998 - 93 - revision 0.58 6. real-time clock (rtc) and "on-now" control the rtc with 242 bytes of ram is a low-power device that provides a time-of-day clock in various formats, and a calendar with century register. it has two alarms and three programmable interrupts. it is also equipped with external battery backup capability for keeping time and saving ram data under power-failure situation. the rtc software is compatible with the mc146818 clock chip. the "on-now" control enables pc to be powered on by several trigger events, a telephone ring for example. also, it allows a safely controlled power-off procedure executed in an orderly fashion. 6.1 register address map table 6.1.1, table 6.1.2, and table 6.1.3 show the register map of rtc and "on-now" . these registers are separated into three banks: bank 0, bank 1, and bank 2. bank 0 contains 10 bytes of time, calendar, and alarm a data, four bytes of control/status registers, and 114 bytes of general purpose user ram. table 6.1.1 - real time clock address map bank 0 address register type register function 00h r/w register 00h : seconds 01h r/w register 01h : seconds alarm a 02h r/w register 02h : minutes 03h r/w register 03h : minutes alarm a 04h r/w register 04h : hours 05h r/w register 05h : hours alarm a 06h r/w register 06h : day of week 07h r/w register 07h : date of month 08h r/w register 08h: month 09h r/w register 09h : year 0ah r/w register 0ah : control register 0bh r/w register 0bh : control register (bit 0 is read only) 0ch r register 0ch : status register 0dh r register 0dh : status register 0eh-7fh r/w register 0eh-7fh : user ram
w83977f/ W83977AF p r e l i m i n a r y publication release date: january 1997 - 94 - revision 0.50 in bank 1, there are 128 bytes of general purpose user ram, as shown in table 6.1.2. table 6.1.2 - real time clock address map bank 1 address register type register function 00h-7fh r/w register 0h-7fh : user ram bank 2 has 13 registers, 1 century register, 8 alarm b registers and 4 control/status registers for " on- now " function. table 6.1.3 - real time clock "on-now" address map bank 2 address register type register function 40h r/w register 40h : centuries 41h r/w register 41h : seconds alarm b 42h r/w register 42h : minutes alarm b 43h r/w register 43h : hours alarm b 44h r/w register 44h : day of week alarm b 45h r/w register 45h : date of month alarm b 46h r/w register 46h : month alarm b 47h r/w register 47h : year alarm b 48h r/w register 48h : century alarm b 49h r/w register 49h : "on-now" control register 1 4ah r/w register 4ah : "on-now" control register 2 4bh r register 4bh : "on-now" status register 3 4ch r/w register 4ch : "on-now" control/status register 4 time, calendar, alarm a, and alarm b data modes register function range(data mode) example location binary bcd binary bcd register 00h seconds 00h-3bh 00h-59h 1eh 30h register 01h sec. alarm a 00h-3bh 00h-59h 1eh 30h register 02h minutes 00h-3bh 00h-59h 1eh 30h register 03h min. alarm a 00h-3bh 00h-59h 1eh 30h register 04h hours (12-hour mode) (24-hour mode) 01h-0ch(am) 81h-8ch(pm) 00h-17h 01h-12h(am) 81h-92h(pm) 00h-23h 08h 08h 08h 08h
w83977f/ W83977AF p r e l i m i n a r y publication release date:march 1998 - 95 - revision 0.58 time, calendar, alarm a, and alarm b data modes continued register function range(data mode) example location binary bcd binary bcd register 05h hours alarm a (12-hour mode) (24-hour mode) 01h-0ch(am) 81h-8ch(pm) 00h-17h 01h-12h(am) 81h-92h(pm) 00h-23h 08h 08h 08h 08h register 06h day of week 01h-07h 01h-07h 02h 02h register 07h date of month 01h-1fh 01h-31h 04h 04h register 08h month 01h-0ch 01h-12h 07h 07h register 09h year 00h-63h 00h-99h 61h 97h register 40h century 00h-63h 00h-99h 13h 19h register 41h sec. alarm b 00h-3bh 00h-59h 1eh 30h register 42h min. alarm b 00h-3bh 00h-59h 1eh 30h register 43h hours alarm b (12-hour mode) (24-hour mode) 01h-0ch(am) 81h-8ch(pm) 00h-17h 01h-12h(am) 81h-92h(pm) 00h-23h 08h 08h 08h 08h register 44h day of week alarm b 01h-07h 01h-07h 02h 02h register 45h date of month alarm b 01h-1fh 01h-31h 04h 04h register 46h month alarm b 01h-0ch 01h-12h 07h 07h register 47h year alarm b 00h-63h 00h-99h 61h 97h register 48h century alarm b 00h-63h 00h-99h 13h 19h 6.2 update cycle the rtc executes an update cycle once per second. it is in an update cycle when rtc updates the contents of the clock and calendar registers. in the meantime, rtc also compares each alarm byte with corresponding timer byte and generates an alarm flag if a match or a don't care condition (0c0h) is present in the alarm register. the update-in-progress bit (uip) in register a pulses high once per second. the update cycle occurs 244 m s after the uip bit goes high. this bit is cleared and the update-ended flag (uf) is set in the end of an update cycle.
w83977f/ W83977AF p r e l i m i n a r y publication release date: january 1997 - 96 - revision 0.50 update cycle time table uip bit update cycle time (t uc ) before update cycle time (t buc min) 1 1984 m s - 0 - 244 m s update period and uip timing t b u c t u c u p d a t e p e r i o d ( 1 s e c o n d ) 6.3 registers the rtc has four control/status registers. they are accessible at all times. 6.3.1 register 0ah all bits are unaffected by reset. register a is a read/write register except bit 7 (uip is read only). bit 7 6 5 4 3 2 1 0 name uip dv2 dv1 dv0 rs3 rs2 rs1 rs0 uip : (read only) when uip is 1, an update cycle is in progress. the uip is cleared in the end of an update cycle and when the set bit in register b is 1.
w83977f/ W83977AF p r e l i m i n a r y publication release date:march 1998 - 97 - revision 0.58 dv[2:0] : divider control these three bits are used to control divider and 32khz oscillator. time-base frequency dv2 dv1 dv0 operation mode divider reset 32.768khz 0 0 x no - 32.768khz 0 1 0 yes - 32.768khz 0 1 1 no - 32.768khz 1 0 x no - 32.768khz 1 1 x no yes rs[3:0 ] : periodic interrupt rate periodic interrupt rate table rs[3:0] time base 0 0 0 0 none 0 0 0 1 3.90625ms / 256hz 0 0 1 0 7.8125ms / 128hz 0 0 1 1 122.070 m s / 8.192khz 0 1 0 0 244.141 m s / 4.096khz 0 1 0 1 488.281 m s / 2.048khz 0 1 1 0 976.562 m s / 1.024khz 0 1 1 1 1.953125ms / 512hz 1 0 0 0 3.90625ms / 256hz 1 0 0 1 7.8125ms / 128hz 1 0 1 0 15.625ms / 64hz 1 0 1 1 31.25ms / 32hz 1 1 0 0 62.5ms / 16hz 1 1 0 1 125ms / 8hz 1 1 1 0 250ms / 4hz 1 1 1 1 500ms / 2hz
w83977f/ W83977AF p r e l i m i n a r y publication release date: january 1997 - 98 - revision 0.50 6.3.2 register 0bh (read/write) bit 7 6 5 4 3 2 1 0 name set pe ae ue reserved dm 12/24 dse set when the set bit is set, any occurring update cycle is aborted and registers (register 00h~09h, register (40h~48h) may be modified without entering an update cycle. when this bit is cleared, the update cycle function occurs once per second. this bit is not affected by any other internal functions or by a reset. pe a "1" on the periodic interrupt enable bit enables the periodic interrupt flag (pf) bit in register 0ch to assert an interrupt. a "0" on this bit blocks the irq output from being driven by a periodic interrupt. this bit can not be modified by any internal function, but it may be cleared by a reset. ae a "1" on the enable bit of alarm a enables the alarm a flag (af) bit in register 0ch to assert an interrupt. a "0" on this bit prohibits alarm a interrupt. the reset signal clears ae to "0". this bit can not be modified by any internal function. ue a "1" on this bit enables the update-ended flag (uf) bit in register c to assert an interrupt. a "0" on this bit prohibits update-ended interrupt. the ue bit is cleared by setting the set bit or by a reset. dm the data mode bit determines whether time and calendar updates are in binary format or in binary- coded-decimal (bcd) format. a "1" on this bit means binary format. a "0" on this bit means bcd format. this bit can not be modified by a reset or any internal function. 24/12 a "1" on this bit selects 24-hour mode for the time-of-day function. a "0" on this bit selects 12-hour mode. this bit can not be modified by a reset or any internal function. dse a "1" on this bit allows two special updates: on the last sunday of april, the time increments from 1:59:59 am to 3:00:00 am. on the last sunday of october, the time decrements from 1:59:59 am to 1:00:00 am. a "0" on this bit disables these special updates. dse can not be changed by any internal operation or a reset. (note: rtc irq is ultimately controlled by logical device 4-cr70 and logical device 4-cr71. these two registers must be set properly if rtc irq is needed)
w83977f/ W83977AF p r e l i m i n a r y publication release date:march 1998 - 99 - revision 0.58 6.3.3 register 0ch (read only) bit 7 6 5 4 3 2 1 0 name irqf pf af uf 0 0 0 0 irqf the interrupt request flag is set to a "1" if one or more of following cases are true: pf*pe = "1" af*ae = "1" uf*ue = "1" (i.e., irqf = pf*pe + af*ae + uf*ue) any time the irqf bit is a "1", the irq is asserted (provided ld4-cr70 and ld4-cr71 are set properly). all flags are cleared by reading the register or by a reset. pf the periodic interrupt flag is set to "1" when a rising edge is detected on the selected tap of the divider chain(rs[3:0] of register a). pf is set to a "1" regardless of the state of pe bit. this bit is cleared by a reset or when this register is read. af a "1" on this bit indicates that the current time has reached the alarm time setting (alarm a). a reset or a read of this register clears this bit. uf the update-ended interrupt flag bit is set after the end of each update cycle. this bit is cleared by a reset or when this bit is read. bit 3 - bit 0 these bits are reserved and all read "0". 6.3.4 register d (read only) bit 7 6 5 4 3 2 1 0 name vrt 0 0 0 0 0 0 0 vrt the valid ram and time bit. a "0" appears on this bit when the external battery is removed or at low- voltage during power-failure situation, indicating the data integrity of the real time clock, " on-now " logic, and storage registers is not guaranteed. this bit can only be set by reading this register, and is not affected by a reset.
w83977f/ W83977AF p r e l i m i n a r y publication release date: january 1997 - 100 - revision 0.50 6.4 "on-now" control the "on-now" control function is built in rtc. it enables the pc to be powered on automatically from triggers of various events, and to be powered off in an orderly controlled fashion. the "on-now" works at all times even when the system power is switch-off or disconnected. it detects several external events to control system power supply on/off properly (e.g. telephone ring, panel switch-off). it also controls the signal ( psctrl ) to turn the power supply on or off. 6.5 power-on events the " on-now " control turns on power supply when one of the following events occurs: panel switch "turned on" telephone is ringing ring-in detection signal comes from a modem keyboard/mouse is stroked/moved power-wake-up input goes from high to low. psctrl active when power returns after a power-failure occurs. (note: panel-switch has a debounce circuit which is clocked by rtc 32.768khz oscillator. the " on-now " control will not function properly if this oscillator fails to work and pc can not be powered-on consequently) 6.6 power-off events panel switch "turned off" power-off under software control power-failure event override power off : panel switch is pushed for at least 4 seconds, then the system will be forced to turn off immediately
w83977f/ W83977AF p r e l i m i n a r y publication release date:march 1998 - 101 - revision 0.58 6.7 registers 6.7.1  on-now register 1 (bank2 register 49h) bit 7 6 5 4 3 2 1 0 name pf clpost spofc dpsca clrsmi smimd phridm dpodtm pf (power failure) the pf is set when a power-failure occurs. this bit is cleared by writing a "1" to it. clpost (clear panel-switch-off-save timer) this bit is self-cleared after writing an "1" to it. if it is set, panel-switch-off-save timer is stopped and cleared. spofc (software power-off command) this bit is self-cleared after writing an "1" to it. if it is set, the psctrl goes inactive immediately. dpsca (disable power supply control activation) this bit is set as long as pf is set. when set, it disables all psctrl activation events except panel- switch- on event. clsmi (clear smi ) this bit is self-cleared after writing an "1" to it. if it is set, smi is cleared to its inactive state. this bit is used to clear smi when smimd is set. smimd ( smi mode) if it is set, smi is level-sensitive. once smi goes active, it keeps active until clsmi is set. writing a "0" to this bit sets smi to be edge-triggered. phridm ( phri detection mode) a "1" on this bit sets phri detection mode to be on falling edge. a "0" on this bit sets phri detection mode to be on a pulse train of frequency greater than 11hz and lasts for 0.2 second. dpodtm (disable power off delay timer ) if set, panel switch power-off delay timer is stopped. if reset, panel switch power-off delay timer counts down continuously.
w83977f/ W83977AF p r e l i m i n a r y publication release date: january 1997 - 102 - revision 0.50 6.7.2 on-now  register 2 (bank2 register 4ah) bit 7 6 5 4 3 2 1 0 name mclke kclke ribe riae phrie pwaki2e pwaki1e alarmbe mclke (mouse clock enable) logical 1 on this bit, a falling edge transition on mclk asserts psctrl . kclke (keyboard clock enable) logical 1 on this bit, a falling edge transition on kclk asserts psctrl . ribe (ri b enable) logical 1 on this bit, a falling edge transition on rib asserts psctrl . riae (ri a enable) logical 1 on this bit, a falling edge transition on ria asserts psctrl . phrie (phri enable) logical 1 on this bit, a falling edge transition on phri asserts psctrl . pwaki2e (power wake-up input 2 enable) logical 1 on this bit, a falling edge transition on pwakin 2 asserts psctrl . pwaki1e (power wake-up input 1 enable) logical 1 on this bit, a falling edge transition on pwakin 1 asserts psctrl . alarmbe (alarm b enable) logical 1 on this bit, the alarm b reaches its predetermined time asserts psctrl .
w83977f/ W83977AF p r e l i m i n a r y publication release date:march 1998 - 103 - revision 0.58 6.7.3 "on-now" register 3 (bank2 register 4bh) bit 7 6 5 4 3 2 1 0 name phrist reserved pspofd pspoftd ribd riad phrid almbd this register is read only except bit 5. phrist ( phri status) this bit holds the current value of phri . pspofd (panel switch power-off detect) logical 1 on this bit, a panel-switch-off event is detected. logical 0 on this bit, there is no panel-switch-off event. psoftd (panel switch power-off delay timer detect) this bit is set when panel switch power-off delay timer reaches its terminal count. this bit is cleared by reading this register. ribd (ri b detect) a falling edge transition on rib asserts this bit. this bit is cleared by reading this register. riad (ri a detect) a falling edge transition on ria asserts this bit. this bit is cleared by reading this register. phrid (phri detect) a falling edge transition on phri asserts this bit. this bit is cleared by reading this register. almbd (alarm b detect) logical 1 on this bit, the alarm b when reaching its preset time asserts this bit. this bit is cleared by reading this register.
w83977f/ W83977AF p r e l i m i n a r y publication release date: january 1997 - 104 - revision 0.50 6.7.4 "on-now" register 4 (bank2 register 4ch) bit 7 6 5 4 3 2 1 0 name psofds1 psofds0 invsmi reserved mclkd kclkd pwaki2d pwaki1d this register is read only except bits 5, 6 and 7. psofds1, psofds0 these two bits decide the delay time between panel switch power off event and power supply off. 00 : 0 second. 01 : 5 seconds. 10 : 13 seconds. 11 : 21 seconds. invsmi logical 1 on this bit, nsmi is active low and goes high-z when dis-asserted. logical 0 on this bit, nsmi is active high and goes high-z when dis-asserted. mclkd (mclk detect) a falling edge transition on mclk asserts this bit. this bit is cleared by reading this register. kclkd (kclk detect) a falling edge transition on kclk asserts this bit. this bit is cleared by reading this register. pwaki2d (pwakin2 detect) a falling edge transition on pwakin 2 asserts this bit. this bit is cleared by reading this register. pwaki1d (pwakin1 detect) a falling edge transition on pwakin 1 asserts this bit. this bit is cleared by reading this register.
w83977f/ W83977AF p r e l i m i n a r y publication release date:march 1998 - 105 - revision 0.58 7. keyboard controller the kbc (8042 with licensed kb bios) circuit of w83977f/ af is designed to provide the functions needed to interface a cpu with a keyboard and/or a ps/2 mouse, and can be used with ibm - compatible personal computers or ps/2-based systems. the controller receives serial data from the keyboard or ps/2 mouse, checks the parity of the data, and presents the data to the system as a byte of data in its output buffer. then, the controller will assert an interrupt to the system when data are placed in its output buffer. the keyboard and ps/2 mouse are required to acknowledge all data transmissions. no transmission should be sent to the keyboard or ps/2 mouse until an acknowledge is received for the previous data byte. 8042 p 2 4 p 2 5 p 2 1 p 2 0 p 2 7 p 1 0 p 2 6 t 0 p 2 3 t 1 p 2 2 p 1 1 k i r q m i r q g a t e a 2 0 k b r s t p 1 7 k i n h g p i / o p i n s p 1 2 ~ p 1 6 k d a t k c l k m c l k m d a t m u l t i p l e x i / o p i n s keyboard and mouse interface
w83977f/ W83977AF p r e l i m i n a r y publication release date: january 1997 - 106 - revision 0.50 7.1 output buffer the output buffer is an 8-bit read-only register at i/o address 60h (default, pnp programmable i/o address ld5-cr60 and ld5-cr61). the keyboard controller uses the output buffer to send the scan code received from the keyboard and data bytes required by commands to the system. the output buffer can only be read when the output buffer full bit in the register is "1". 7.2 input buffer the input buffer is an 8-bit write-only register at i/o address 60h or 64h (default, pnp programmable i/o address ld5-cr60, ld5-cr61, ld5-cr62, and ld5-cr63). writing to address 60h sets a flag to indicate a data write; writing to address 64h sets a flag to indicate a command write. data written to i/o address 60h is sent to keyboard (unless the keyboard controller is expecting a data byte) through the controller's input buffer only if the input buffer full bit in the status register is  0  . 7.3 status register the status register is an 8-bit read-only register at i/o address 64h (default, pnp programmable i/o address ld5-cr62 and ld5-cr63), that holds information about the status of the keyboard controller and interface. it may be read at any time. bit bit function description 0 output buffer full 0: output buffer empty 1: output buffer full 1 input buffer full 0: input buffer empty 1: input buffer full 2 system flag this bit may be set to 0 or 1 by writing to the system flag bit in the command byte of the keyboard controller. it defaults to 0 after a power-on reset. 3 command/data 0: data byte 1: command byte 4 inhibit switch 0: keyboard is inhibited 1: keyboard is not inhibited 5 auxiliary device output buffer 0: auxiliary device output buffer empty 1: auxiliary device output buffer full 6 general purpose time- out 0: no time-out error 1: time-out error 7 parity error 0: odd parity 1: even parity (error)
w83977f/ W83977AF p r e l i m i n a r y publication release date:march 1998 - 107 - revision 0.58 7.4 commands command function 20h read command byte of keyboard controller 60h write command byte of keyboard controller bit 1 2 3 4 5 6 7 0 bit definition reserved ibm keyboard translate mode disable auxiliary device disable keyboard reserve system flag enable auxiliary interrupt enable keyboard interrupt a4h test password returns 0fah if password is loaded returns 0f1h if password is not loaded a5h load password load password until a "0" is received from the system a6h enable password enable the checking of keystrokes for a match with the password a7h disable auxiliary device interface a8h enable auxiliary device interface a9h interface test bit 04 03 02 01 00 bit definition no error detected auxiliary device "clock" line is stuck low auxiliary device "clock" line is stuck high auxiliary device "data" line is stuck low auxiliary device "data" line is stuck low
w83977f/ W83977AF p r e l i m i n a r y publication release date: january 1997 - 108 - revision 0.50 7.4 commands, continued command function aah self-test returns 055h if self test succeeds abh interface test bit 04 03 02 01 00 bit definition no error detected keyboard "clock" line is stuck low keyboard "clock" line is stuck high keyboard "data" line is stuck low keyboard "data" line is stuck high adh disable keyboard interface aeh enable keyboard interface c0h read input port(p1) and send data to the system c1h continuously puts the lower four bits of port1 into status register c2h continuously puts the upper four bits of port1 into status register d0h send port2 value to the system d1h only set/reset gatea20 line based on the system data bit 1 d2h send data back to the system as if it came from keyboard d3h send data back to the system as if it came from auxiliary device d4h output next received byte of data from system to auxiliary device e0h reports the status of the test inputs fxh pulse only rc(the reset line) low for 6 m s if command byte is even
w83977f/ W83977AF p r e l i m i n a r y publication release date:march 1998 - 109 - revision 0.58 7.5 hardware gatea20/keyboard reset control logic the kbc implements a hardware control logic to speed-up gatea20 and kbreset. this control logic is controlled by ld5-crf0 as follows: 7.5.1 kb control register (logic device 5, cr-f0) bit 7 6 5 4 3 2 1 0 name kclks1 kclks0 reserved reserved reserved p92en hga20 hkbrst kclks1, kclks0 this 2 bits are for the kbc clock rate selection. = 0 0 kbc clock input is 6 mhz = 0 1 kbc clock input is 8 mhz = 1 0 kbc clock input is 12 mhz = 1 1 kbc clock input is 16 mhz p92en (port 92 enable) a "1" on this bit enables port 92 to control gatea20 and kbreset. a "0" on this bit disables port 92 functions. hga20 (hardware gate a20) a "1" on this bit selects hardware gatea20 control logic to control gate a20 signal. a "0" on this bit disables hardware gatea20 control logic function. hkbrst (hardware keyboard reset) a "1" on this bit selects hardware kb reset control logic to control kbreset signal. a "0" on this bit disables hardware kb reset control logic function. when the kbc receives data that follows a "d1" command, the hardware control logic sets or clears gate a20 according to the received data bit 1. similarly, the hardware control logic sets or clears kbreset depending on the received data bit 0. when the kbc receives a "fe" command, the kbreset is pulse low for 6 m s(min.) with 14 m s(min.) delay. gatea20 and kbreset are controlled by either the software control or the hardware control logic and they are mutually exclusive. then, gatea20 and kbreset are merged along with port92 when p92en bit is set. 7.5.2 port 92 control register (default value = 0x24) bit 7 6 5 4 3 2 1 0 name res. (0) res. (0) res. (1) res. (0) res. (0) res. (1) sga20 plkbrst sga20 (special gate a20 control) a "1" on this bit drives gate a20 signal to high. a "0" on this bit drives gate a20 signal to low. plkbrst (pull-low kbreset) a "1" on this bit causes kbreset to drive low for 6 m s(min.) with 14 m s(min.) delay. before issuing another keyboard reset command, the bit must be cleared.
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 110 - revision 0.58 8. general purpose i/o w83977f/ af provides 14 input/output ports that can be individually configured to perform a simple basic i/o function or a pre-defined alternate function. those 14 gp i/o ports are divided into two groups, the first group contains 8 ports, and the other group contains only 6 ports. each port in the first group corresponds to a configuration register in logical device 7. each port in the second group corresponds to a configuration register in logical device 8. users can select those i/o ports functions by independently programming the configuration registers. figure 8.1 and 8.2 respectively show the gp i/o port ' s structure of logical device 7 and device 8. right after power-on reset, those ports perform basic i/o functions. figure 8.1
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 111 - revision 0.58 figure 8.2 8.1 basic i/o functions the basic i/o functions of w83977f/ af provide several i/o operations including driving a logic value to output port, latching a logic value from input port, inverting the input/output logic value, and steering common interrupt (only available in the second group of the gp i/o port). common interrupt is the ored function of all interrupt channels in the second group of the gp i/o ports, and it also connects to a 1ms debounce filter which can reject a noise of 1 ms pulse width or less. there are two 8-bit registers, gp1 and gp2, which are directly connected to both groups of gp i/o ports. each gp i/o port is represented as a bit in one of two 8-bit registers. only 6 bits of gp2 are implemented. table 11.1.1 shows their combinations of basic i/o functions, and table 11.1.2 shows the register bit assignments of gp1 and gp2.
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 112 - revision 0.58 table 8.1.1 i/o bit 0 = output 1 = input enable int bit 0 = disable 1 = enable polarity bit 0 = non invert 1 = invert basic i/o operations 0 0 0 basic non-inverting output 0 0 1 basic inverting output 0 1 0 non-inverted output bit value of gp2 drive to common interrupt 0 1 1 inverted output bit value of gp2 drive to common interrupt 1 0 0 basic non-inverting input 1 0 1 basic inverting input 1 1 0 non-inverted input drive to common interrupt 1 1 1 inverted input drive to common interrupt table 8.1.2 gp i/o port accessed register register bit assignment gp i/o port bit 0 gp10 bit 1 gp11 bit 2 gp12 bit 3 gp13 gp1 bit 4 gp14 bit 5 gp15 bit 6 gp16 bit 7 gp17 bit 0 gp20 bit 1 gp21 gp2 bit 2 gp22 bit 3 gp23 bit 4 gp24 bit 5 gp25
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 113 - revision 0.58 8.2 alternate i/o functions w83977f/ af provides several alternate functions which are scattered among the gp i/o ports. table 8.2.1 shows their assignments. polarity bit can also be set to alter their polarity of alternate functions. table 8.2.1 gp i/o port alternate function gp10 interrupt steering gp11 interrupt steering gp12 watching dog timer output/irrx input gp13 power led output/ irtx output [W83977AF only] gp14 general purpose address decoder/ keyboard inhibit(p17) gp15 general purpose write strobe/ 8042 p12 gp16 watching dog timer output gp17 power led output gp20 keyboard reset (8042 p20) gp21 8042 p13 gp22 8042 p14 gp23 8042 p15 gp24 8042 p16 gp25 gate a20 (8042 p21) 8.2.1 interrupt steering gp10 and gp11 can be programmed to map their own interrupt channels. the selection of irq channel can be done in configure registers cr70 and cr72 of logical device 7. each interrupt channel also has its own 1 ms debounce filter that is used to reject any noise which is equal to or less than 1 ms wide. 8.2.2 watch dog timer output watch dog timer contains a one minutes resolution down counter, crf2 of logical device 8, and two watch dog control registers, wdt_ctrl0 and wdt_ctrl1 of logical device 8. the down counter can be programmed within the range from 1 to 255 minutes. writing any new non-zero value to crf2 or reset signal coming from a mouse interrupt or keyboard interrupt (crf2 also contains non-zero value) will cause the watch dog timer to reload and start to count down from the new value. as the counter reaches zero, (1) watch dog timer time-out occurs and the bit 0 of wdt_ctrl1 will be set to logic 1; (2) watch dog interrupt output is asserted if the interrupt is enable in cr72 of logical device 8; and (3) power led starts to toggle output if the bit 3 of wdt_ctrl0 is enabled. wdt_ctrl1 also can be accessed through gp2 i/o base address + 1.
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 114 - revision 0.58 8.2.3 power led the power led function provides 1 hertz rate toggle pulse output with 50 percent duty cycle. table 8.2.2 shows how to enable power led. table 8.2.2 wdt_ctrl1 bit[1] wdt_ctrl0 bit[3] wdt_ctrl1 bit[0] power led state 1 x x 1 hertz toggle pulse 0 0 x continuous high or low * 0 1 0 continuous high or low * 0 1 1 1 hertz toggle pulse * note: continuous high or low depends on the polarity bit of gp13 or gp17 configure registers. 8.2.4 general purpose address decoder general purpose address decoder provides two address decode as aen equal to logic 0. the address base is stored at cr62, cr63 of logical device 7. the decode output is normally active low. users can alter its polarity through the polarity bit of the gp14 ' s configuration register. 8.2.5 general purpose write strobe general purpose write strobe is an address decoder that performs like general purpose address decoder, but it has to be qualified by iow and aen. its output is normally active low. users can alter its polarity through the polarity bit of the gp15 ' s configuration register. 9. plug and play configuration the w83977f/ af provides many configuration registers for setting up different types of configurations. there are two approaches to entering the configuration state and accessing these configuration registers, comply pnp and compatible pnp. the comply pnp protocol is based on the plug and play isa specification. the compatible pnp protocol is similar to previous winbond i/o ' s protocol. the power-on-setting upon the pin 51 ( dtrb ) decides the method of entering the configuration mode. in w83977f/ af, there are nine logical devices (from logical device 0 to logical device 8) which correspond to nine individual functions: fdc, prt, uart1, uart2, rtc, kbc, ir, gpio1, gpio2 in listed order. each logical device has its own configuration registers (above cr30). host can access those registers only after entering configuration mode.
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 115 - revision 0.58 9.1 comply pnp the protocol of comply pnp is 100% compatible with the plug and play isa specification. w83977f/ af provides built-in plug and play state machine to control the configuration flow. the state machine supports four states: wait for key state, sleep state, isolation state, and configure state. according to plug and play isa specification, users can transit the four states by accessing the configuration registers, cr00 - cr07. 9.1.1 wait for key state all cards enter this state after power-up reset or in response to the reset and wait for key commands. no command is active in this state until the initiation key is detected on the isa bus. the initiation key is a sequence of 32 hexadecimal number which will be shifted into lfsr (linear feedback shift register) built in w83977f/ af. the wait for key state is the default state for plug and play cards during normal system operation. after configuration and activation, software should return all cards to this state. 9.1.2 sleep state in this state, plug and play wait for a wake[csn] command. this command will selectively enable one or more cards to enter either the isolation or configure states based on the write data and the value of the csn on each card. if the write data for the wake[csn] command is zero then all cards that have not been assigned a csn will enter the isolation state. if the write data for the wake[csn] command is not zero then the one card whose assigned csn matches the parameter of the wake[csn] command will enter the configure state. 9.1.3 isolatio n state in this state, plug and play cards respond to reads of the serial isolation registers according to isolation protocol. an unique csn is assigned after the card is isolated 9.1.4 configure state a card in the configure state responds to all configuration commands including reading the card ' s resource configure information and programming the card ' s resource selections. only one card may be in this state at a time.
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 116 - revision 0.58 9.2 compatible pnp 9.2.1 extended function registers in compatible pnp, there are two ways to enter extended function mode (which is same as configure state in comply pnp) and read or write the configuration registers. hefras (cr26 bit 6) can be used to select one out of these two methods of entering the extended function mode as follows: hefras address and value 0 write 87h to the location 3f0h twice 1 write 87h to the location 370h twice after power-on reset, the value on rtsa (pin 43) is latched by hefras of cr26. in compatible pnp, a specific value (87h) must be written twice to the extended functions enable register (i/o port address 3f0h or 370h). secondly, an index value (02h, 07h-feh) must be written to the extended functions index register (i/o port address 3f0h or 370h same as extended functions enable register) to identify which configuration register is to be accessed. the designer can then access the desired configuration register through the extended functions data register (i/o port address 3f1h or 371h). after programming of the configuration register is finished, an additional value(aah) should be written to efers to exit the extended function mode to prevent unintentional access to those configuration registers. the designer can also set bit 5 of cr26 (lockreg) to high to protect the configuration registers against accidental accesses. the configuration registers can be reset to their default or hardware settings only by a cold reset (pin mr = 1). a warm reset will not affect the configuration registers. 9.2.2 extended functions enable registers (efers) after a power-on reset, the w83977f/ af enters the default operating mode. before the w83977f/ af enters the extended function mode, a specific value must be programmed into the extended function enable register (efer) so that the extended function register can be accessed. the extended function enable registers are write-only registers. on a pc/at system, their port addresses are 3f0h or 370h (as described in previous section). 9.2.3 extended function index registers (efirs), extended function data registers(efdrs) after the extended function mode is entered, the extended function index register (efir) must be loaded with an index value (02h, 07h-feh) to access configuration register 0 (cr0), configuration register 7 (cr07) to configuration register fe (crfe), and so forth through the extended function data register (efdr). the efirs are write-only registers with port address 3f0h or 370h (as described in section 12.2.1) on pc/at systems; the efdrs are read/write registers with port address 3f1h or 371h (as described in section 9.2.1) on pc/at systems.
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 117 - revision 0.58 10. configuration register 10.1 chip (global) control register cr00 (only available in comply pnp mode) bit 7-0 : iordpra9 - iordpra2 --> set rd_data port a9-a2 cr01 (only available in comply pnp mode) bit7-0 : siso 7-0 --> serial isolation cr02 (default 0x00) bit 7-3 : reserved. bit 2: rstcsn --> reset csn to 0. only available in comply pnp mode. bit 1: rtuwait -- > return to wait for key state. only available in comply pnp mode. bit 0 : swrst --> soft reset. cr03 (only available in comply pnp mode) bit 7-0 : wakcsn7 - wakcsn0 --> wake csn cr04 (only available in comply pnp mode) bit 7-0 : rsodat7 - rsodat 0 --> resource data cr05 (only available in comply pnp mode) bit 7-1 : reserved bit 0 : rsostat -- > resource status bit cr06 (only available in comply pnp mode) bit 7-0 : csn7 -csn0 --> card select number 7 - 0 cr07 bit 7-0 : ldnb7 - ldnb0 --> logical device number bit 7 - 0 cr20 bit 7-0 : devidb7 - debidb0 -- > device id bit 7 - bit 0 = 0x97 (read only). cr21 bit 7-0 : devrevb7 - debrevb0 -- > device rev bit 7 - bit 0 = 0x71 (read only). cr22 (default 0xff) bit 7-6 : reserved. bit 5 : urbpwd = 0 power down = 1 no power down bit 4 : urapwd = 0 power down = 1 no power down
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 118 - revision 0.58 bit 3 : prtpwd = 0 power down = 1 no power down bit 2 : irpwd = 0 power down = 1 no power down bit 1 : reserved. bit 0 : fdcpwd = 0 power down = 1 no power down cr23 (default 0x00) bit7-6 : reserved bit 5-3 : apdtms2 apdtms1 apdtms0 = 000 4 seconds count-down time of the apd mode. = 001 8 seconds count-down time of the apd mode. = 010 16 seconds count-down time of the apd mode. = 011 32 seconds count-down time of the apd mode. = 100 1 minute count-down time of the apd mode. = 101 2 mi nutes count-down time of the apd mode. = 110 4 minutes count-down time of the apd mode. = 111 16 minutes count-down time of the apd mode. bit 2-0 : oscs2, oscs1, oscs0. = 000 default power-on state after power on reset. = 1xx stop clock supply to whole chip, but pll circuit still in operation. = 001 stop clock supply to whole chip and pll circuit. = 010 standby for automatic power-down(apd). = 011 automatic power-down(apd) has been happened. cr24 (default 0b1ss00sss) bit 7 : en16sa = 0 12 bit address qualification = 1 16 bit address qualification bit 6-5 : clksel, enpll = 00 the clock input on pin 1 should be 14.31818 mhz. = 01 the clock input on pin 1 should be 24 mhz. = 11 the clock input on pin 1 should be 48 mhz. bit 4 : rwpnpreg = 0 disable read/write pnp mode config registers by using the method of non-pnp mode = 1 enable read/write pnp mode config registers by using the method of non-pnp mode bit 3 : reserved
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 119 - revision 0.58 bit 2 : enkbrtc = 0 kbc and r tc are disabled after hardware reset. = 1 kbc and rtc are active after hardware reset. this bit is read only, and set/reset by hardware setting. bit 1 : enpnp = 0 disable comply pnp = 1 enable comply pnp bit 0 : pnpcsv = 0 the compatible and comply pnp has default value = 1 the compatible and comply pnp has no default value cr25 (default 0x00) bit 7-6 : reserved bit 5 : urbtri bit 4 : uratri bit 3 : prttri bit 2 : irtri [W83977AF only] bit 1 : reserved. bit 0 : fdctri. cr26 (default 0b0s000000) bit 7 : sel4fdd = 0 select two fdd mode. = 1 select four fdd mode. bit 6 : hefras these two bits define how to enable configuration mode. hefras address and value = 0 write 87h to the location 3f0h twice. = 1 write 87h to the location 370h twice. bit 5 : lockreg = 0 enable r/w configuration registers. = 1 disable r/w configuration registers. bit 4 : dsirlgrq [W83977AF only] = 0 enable ir legacy mode on irq and drq selection, then mcr register bit 3 is effective in selecting irq and drq. = 1 disable ir legacy mode on irq and drq selection, then mcr register bit 3 is not effective in selecting irq and drq. bit 3 : dsfdlgrq = 0 enable fdc legacy mode on irq and drq selection, then do register bit 3 is effective in selecting irq = 1 disable fdc legacy mode on irq and drq selection, then do register bit 3 is not e ffective in selecting irq
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 120 - revision 0.58 bit 2 : dsprlgrq = 0 enable prt legacy mode on irq and drq selection, then dcr bit 4 is effective on selecting irq = 1 disable prt legacy mode on irq and drq selection, then dcr bit 4 is not effective on selecting irq bit 1 : dsualgrq = 0 enable uart a legacy mode irq selecting, then mcr bit 3 is effective on selecting irq = 1 disable uart a legacy mode irq selecting, then mcr bit 3 is not effective on selecting i rq bit 0 : dsublgrq = 0 enable uart b legacy mode irq selecting, then mcr bit 3 is effective on selecting irq = 1 disable uart b legacy mode irq selecting, then mcr bit 3 is not effective on selecting irq cr28 (default 0x00) bit 7-5: reserved. bit 4 : irq sharing selection. = 0 disable irq sharing = 1 enable irq sharing bit 3 :reserved bit 2-0 : prtmods2 - prtmods0 = 0xx parallel port mode = 100 reserved = 101 external fdc mode = 110 reserved = 111 external two fdc mode cr29 [W83977AF only] bit 7-0 : cpsidb7 - cpsidb0 --> comply pnp serial id bit 7 - bit 0. cr2a (default 0x00) bit 7 : pin57s = 0 kbrst = 1 gp12 bit 6 : pin56s = 0 ga20 = 1 gp11 bit 5-4 : pin40s1, pin40s0 = 00 cirrx [W83977AF only] = 01 gp24 = 10 8042 p13 = 11 reserved
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 121 - revision 0.58 bit 3-2 : pi n39s1, pin39s0 = 00 irrxh [W83977AF only] = 01 irsl0 [W83977AF only] = 10 gp25 = 11 ctsc [W83977AF only] bit 1-0 : pin3s1, pin3s0 = 00 drvden1 = 01 gp10 = 10 8042 p12 = 11 ndsrc cr2b (default 0x00) bit 7-6 : pin73s1, pin73s0 = 00 pansw = 01 gp23 = 10 reserved = 11 dcdc [W83977AF only ] bit 5 : pin72s = 0 psctrl = 1 gp22 bit 4-3 : pin70s1, pin70s0 = 00 smi = 01 gp21 = 10 8042 p16 = 11 ric [W83977AF only] bit 2-1 : pin69s1, pin69s0 = 00 phri = 01 gp20 = 10 reserved = 11 reserved bit 0 : pin58s = 0 kblock = 1 gp13 cr2c (default 0x00) bit 7 -6 : pin121s1, pin121s0 = 00 drq0 = 01 gp17 = 10 8042 p14 = 11 ndtrc [W83977AF only]
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 122 - revision 0.58 bit 5-4 : pin119s1, pin119s0 = 00 ndack0 = 01 gp16 = 10 8042 p15 = 11 nrtsc bit 3-2 : pin104s1, pin104s0 = 00 irq15 = 01 gp15 = 10 wdto = 11 irsl2 [W83977AF only] bit 1-0 : pin103s1, pin103s0 = 00 irq14 = 01 g p14 = 10 pledo = 11 irsl1 [W83977AF only] cr2d (default 0x00) test modes: reserved for winbond. cr2e (default 0x00) test modes: reserved for winbond. cr2f (default 0x00) test modes: reserved for winbond. 10.2 logical device 0 (fdc) cr30 (default 0x01) bit 7-1 : reserved. bit 0 : = 1 activates the logical device. = 0 logical device is inactive. cr31 bit 7-2 : reserved. bit 1 : enrngck -- > enable i/o range check bit 0 : foriord --> forces ldn to respond i/o re ad cr60, cr 61 (default 0x03, 0xf0) these two registers select fdc i/o base address [0x100:0xff8] on 8 byte boundaries. cr70 (default 0x06) bit 7-4 : reserved. bit 3-0 : these bits select irq resource for fdc.
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 123 - revision 0.58 cr71 (default 0x02, read only) bit 7-2 : reserved. bit 1 : irqlev -- > irq level = 1: high; = 0: low bit 0 : irqtype --> irq type = 1: level trigger; = 0: edge trigger cr74 (default 0x02) bit 7-3 : reserved. bit 2-0 : these bits select drq resource for fdc. = 0x00 dma0 = 0x01 dma1 = 0x02 dma2 = 0x03 dma3 = 0x04-0x07 no dma active crf0 (default 0x0e) fdd mode register bit 7 : fipurdwn this bit controls the internal pull-up resistors of the fdc input pins rdata, index, trak0, dskchg, and wp. = 0 the internal pull-up resistors of fdc are turned on.(default) = 1 the internal pull-up resistors of fdc are turned off. bit 6 : intvertz this bit determines the polarity of all fdd interface signals. = 0 fdd interface signals are active low. = 1 fdd interface signals are active high. bit 5 : drv2en (ps2 mode only) when this bit is a logic 0, indicates a second drive is installed and is reflected in status register a. bit 4 : swap drive 0, 1 mode = 0 no swap (default) = 1 drive and motor sel 0 and 1 are swapped. bit 3-2 interface mode = 11 at mode (default) = 10 (reserved) = 01 ps/2 = 00 model 30 bit 1 : fdc dma mode = 0 burst mode is enabled = 1 n on-burst mode (default) bit 0 : floppy mode = 0 normal floppy mode (default) = 1 enhanced 3-mode fdd
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 124 - revision 0.58 crf1 (default 0x00) bit 7-6 : boot floppy = 00 fdd a = 01 fdd b = 10 fdd c = 11 fdd d bit 5 : media id1 polarity = 0 non-inverse = 1 inverse bit 4 : media id0 polarity = 0 non-inverse = 1 inverse bit 3-2 : density select = 00 normal (default) = 01 normal = 10 1 ( forced to logic 1) = 11 0 ( forced to logic 0) bit 1 : disfddwr = 0 enable fdd write. = 1 disable fdd write(forces pins we, wd to stay high). bit 0 : swwp = 0 normal, use wp to determine whether the fdd is write protected or not. = 1 fdd is always write-protected. crf2 (default 0xff) bit 7-6 : fdd d drive type bit 5-4 : fdd c drive type bit 3-2 : fdd b drive type bit 1:0 : fdd a drive type when fdd is in enhanced 3-mode(crf0.bit0=1),these bits determine selden value in table a of crf4 and crf5 as follows. dtype1 dpyte0 drate1 drate0 selden 0 0 1 1 1 0 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 x x 0 1 0 x x 1 1 1 0 1 0 note: x means don't care. crf4 (default 0x00) fdd0 selection: bit 7 : reserved. bit 6 : precomp. disable. = 1 disable fdc precompensation. = 0 enable fdc precompensation. bit 5 : reserved.
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 125 - revision 0.58 bit 4-3 : drts1, drts0 : data rate table select (refer to table a). = 00 select regular drives and 2.88 format = 01 specifical application = 10 2 meg tape = 11 reserved bit 2 : reserved. bit 1:0 : dmod0, dmod1 : drive mode l select (refer to table b). crf5 (default 0x00) fdd1 selection : same as fdd0 of crf4. table a drive rate table select data rate selected data rate selden drts1 drts0 drate1 drate0 mfm fm crf0 bit 0=0 1 1 1meg --- 1 0 0 0 0 500k 250k 1 0 1 300k 150k 0 1 0 250k 125k 0 1 1 1meg --- 1 0 1 0 0 500k 250k 1 0 1 500k 250k 0 1 0 250k 125k 0 1 1 1meg --- 1 1 0 0 0 500k 250k 1 0 1 2meg --- 0 1 0 250k 125k 0 note:refer to crf2 for selden value in the cases when crf0, bit0=1. table b dmod0 dmod1 drvden0(pin 2) drvden1(pin 3) drive type 0 0 selden drate0 4/2/1 mb 3.5 2/1 mb 5.25  2/1.6/1 mb 3.5  (3-mode) 0 1 drate1 drate0 1 0 selden drate0 1 1 drate0 drate1
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 126 - revision 0.58 10.3 logical device 1 (parallel port) cr30 (default 0x01 when pnpcsv=0 at por) bit 7-1 : reserved. bit 0 : = 1 activates the logical device. = 0 logical device is inactive. cr31 bit 7-2 : reserved. bit 1 : enrngck -- > enable i/o range check bit 0 : foriord --> forces ldn to respond i/o read cr60, cr 61 (default 0x03, 0x78 at pnpcsv=0) these two registers select parallel port i/o base address. [0x100:0xffc] on 4 byte boundaries(epp not supported) or [0x100:0xff8] on 8 byte boundaries(all modes supported, epp is only available when the base address is on a n 8byte boundary). cr70 (default 0x07 when pnpcsv=0 at por) bit 7-4 : reserved. bit [3:0] : these bits select irq resource for parallel port. cr71 (default 0x02, read only) bit 7-2 : reserved. bit 1 : irqlev -- > irq level = 1: high; = 0: low bit 0 : irqtype --> irq type = 1: level trigger; = 0: edge trigger
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 127 - revision 0.58 cr74 (default 0x04) bit 7-3 : reserved. bit 2-0 : these bits select drq resource for parallel port. 0x00=dma0 0x01=dma1 0x02=dma2 0x03=dma3 0x04-0x07= no dma active crf0 (default 0x3f) bit 7 : pp interrupt type: not valid when the parallel port is in the printer mode (100) or the standard & bi-directional mode (000). = 1 pulsed low, released to high-z . = 0 irq follows nack when parallel port in epp mode or [printer, spp, epp] under ecp. bit [6:3] : ecp fifo threshold. bit 2-0 parallel port mode (cr f1 prtmods2= logical 1) = 100 printer mode (default) = 000 standard and bi-direction (s pp) mode = 001 epp-1.9 and spp mode = 101 epp-1.7 and spp mode = 010 ecp mode = 011 ecp and epp-1.9 mode = 111 ecp and epp-1.7 mode.
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 128 - revision 0.58 10.4 logical device 2 (uart a) ) cr30 (default 0x01 when pnpcsv=0 at por) bit 7-1 : reserved. bit 0 : = 1 activates the logical device. = 0 logical device is inactive. cr31 bit 7-2 : reserved. bit 1 : enrngck -- > enable i/o range check bit 0 : foriord --> forces ldn to respond i/o read cr60, cr 61 (default 0x03, 0xf8 when pnpcsv=0 at por ) t hese two registers select serial port 1 i/o base address [0x100:0xff8] on 8 byte boundaries. cr70 (default 0x04 when pnpcsv=0 at por) bit 7-4 : reserved. bit [3:0] : these bits select irq resource for serial port 1. cr71(default 0x02, read only) bit 7-2 : reserved. bit 1 : irqlev -- > irq level = 1: high; = 0: low bit 0 : irqtype --> irq type = 1: level trigger; = 0: edge trigger crf0 (default 0x00) bit 7-2 : reserved. bit 1-0 : suaclkb1, suaclkb0 = 00 uart a clock source is 1.846 2 mhz (24mhz/13) = 01 uart a clock source is 2 mhz (24mhz/12) = 10 uart a clock source is 24 mhz (24mhz/1) = 11 uart a clock source is 14.769 mhz (24mhz/1.625)
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 129 - revision 0.58 10.5 logical device 3 (uart b) cr30 (default 0x01 when pnpcsv=0 at por) bit 7-1 : reserved. bit 0 : = 1 activates the logical device. = 0 logical device is inactive. cr31 bit 7-2 : reserved. bit 1 : enrngck -- > enable i/o range check bit 0 : foriord --> forces ldn to respond i/o read cr60, cr 61 (default 0x02, 0xf8 when pnpcsv=0 at por) these two registers select serial port 2 i/o base address [0x100:0xff8] on 8 byte boundaries. cr70 (default 0x03 when pnpcsv=0 at por) bit 7-4 : reserved. bit [3:0] : these bits select irq resource for serial port 2. cr71 (default 0x02, read only) bit 7-2 : reserved. bit 1 : irqlev -- > irq level = 1: high; = 0: low bit 0 : irqtype --> irq type = 1: level trigger; 0: edge trigger crf0 (default 0x00) bit 7-2 : reserved. bit 1-0 : subclkb1, subcl kb0 = 00 uart b clock source is 1.8462 mhz (24mhz/13) = 01 uart b clock source is 2 mhz (24mhz/12) = 10 uart b clock source is 24 mhz (24mhz/1) = 11 uart b clock source is 14.769 mhz (24mhz/1.625)
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 130 - revision 0.58 10.6 logical device 4 (real time clock) cr30 (default 0x01 when penkrc=1 at por) bit 7-1 : reserved. bit 0 : = 1 activates the logical device. = 0 logical device is inactive. cr31 bit 7-2 : reserved. bit 1 : enrngck -- > enable i/o range check bit 0 : foriord --> forces ldn to respond i/o read cr60, cr 61 (default 0x00, 0x70 when penkrc=1 at por) these two registers select real time clock i/o base address [0x100:0xffe] on 2 byte boundaries. cr70 (default 0x08 when penkrc=1 at por) bit 7-4 : reserved. bit [3:0] : these bits select irq resource for rtc. cr71 (default 0x00, read/write) bit 7-2 : reserved. bit 1 : irqlev -- > irq level = 1: high; = 0: low bit 0 : irqtype --> irq type = 1: level trigger; = 0: e dge trigger crf0 (default 0x00) rtc mode register bit 7-6 : = 00 select bank0 of ram = 01 select bank1 of ram = 10 select bank2 of ram bit 5-4 : reserved. bit 3 : = 1 lock cmos ram e0-ffh bit 2 : = 1 lock cmos ram c0-dfh bit 1 : = 1 lock cmos ram a0-bfh bit 0 : = 1 lock cmos ram 80-9fh note : once set, bit[3:0] can not be cleared by a write; bit[3:0] is cleared only on power-on reset or upon a hard reset.
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 131 - revision 0.58 10.7 logical device 5 (kbc) cr30 (default 0x01 when penkrc=1 at por) bit 7-1 : reserved. bit 0 : = 1 activates the logical device. = 0 logical device is inactive. cr31 bit 7-2 : reserved. bit 1 : enrngck -- > enables i/o range check bit 0 : foriord --> forces ldn to respond i/o read cr60, cr 61 (default 0x00, 0x60 when penkrc=1 at por) these two registers select the first kbc i/o base address [0x100:0xfff] on 1 byte boundaries. cr62, cr 63 (default 0x00, 0x64 when penkrc=1 at por) these two registers select the second kbc i/o base addres s [0x100:0xfff] on 1 byte boundaries. cr70 (default 0x01 when penkrc=1 at por) bit 7-4 : reserved. bit [3:0] : these bits select irq resource for kint(keyboard). cr71 (default 0x02, read only) bit 7-2 : reserved. bit 1 : irqlev -- > irq level = 1: high; = 0: low bit 0 : irqtype --> irq type = 1: level trigger; = 0: edge trigger cr72 (default 0x0c when penkrc=1 at por) bit 7-4 : reserved. bit [3:0] : these bits select irq resource for mint(ps2 mouse) cr73 (default 0x02) bit 7-2 : reserved. b it 1 : irqlev -- > irq level = 1: high; = 0: low bit 0 : irqtype --> irq type = 1: level trigger; = 0: edge trigger
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 132 - revision 0.58 crf0 (default 0x40) bit 7-6 : kbc clock rate selection = 00 select 6mhz as kbc clock input. = 01 select 8mhz as kbc clock input. = 10 select 12mhz as kbc clock input. = 11 select 16mhz as kbc clock input. bit 5-3 : reserved. bit 2 : = 0 port 92 disable. = 1 port 92 enable. bit 1 : = 0 gate20 software control. = 1 gate20 hardware spee d up. bit 0 : = 0 kbrst software control. = 1 kbrst hardware speed up. 10.8 logical device 6 (ir) cr30 (default 0x00) bit 7-1 : reserved. bit 0 : = 1 activates the logical device. = 0 logical device is inactive. cr31 bit 7-2 : reserved. bit 1 : enrngck -- > enable i/o range check bit 0 : foriord --> forces ldn to respond i/o read cr60, cr 61 (default 0x00, 0x00) these two registers select ir i/o base address [0x100:0xff8] on 8 byte boundaries. cr70 (default 0x00) bit 7-4 : re served. bit [3:0] : these bits select irq resource for ir. cr71 (default 0x02, read only) bit 7-2 : reserved. bit 1 : irqlev -- > irq level = 1: high; = 0: low bit 0 : irqtype --> irq type = 1: level trigger; = 0: edge trigger
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 133 - revision 0.58 cr74 (default 0x04) bit 7-3 : reserved. bit 2-0 : these bits select drq resource for rx of uart c. = 0x00 dma0 = 0x01 dma1 = 0x02 dma2 = 0x03 dma3 = 0x04-0x07 no dma active cr75 (default 0x04) bit 7-3 : reserved. bit 2-0 : these bits select drq resour ce for tx of uart c. = 0x00 dma0 = 0x01 dma1 = 0x02 dma2 = 0x03 dma3 = 0x04-0x07 no dma active crf0 (default 0x00) bit 7-4 : reserved. bit 3 : rxw4c = 0 no reception delay when sir is changed from tx mode to rx mode. = 1 reception delays 4 characters-time(40 bit-time) when sir is changed from tx mode to rx mode. bit 2 : txw4c = 0 no transmission delay when sir is changed from rx mode to tx mode. = 1 transmission delays 4 characters-tim e(40 bit-time) when sir is changed from rx mode to tx mode. bit 1 : apedcrc = 0 no append hardware crc value as data in fir/mir mode. = 1 append hardware crc value as data in fir/mir mode. bit 0 : enbnksel; bank select enable = 0 disable ir bank selection. = 1 enable ir bank selection.
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 134 - revision 0.58 10.9 logical device 7 (auxiliary i/o part i) cr30 (default 0x00) bit 7-1 : reserved. bit 0 : = 1 activates the logical device. = 0 logical device is inactive. cr31 bit 7-2 : reserved. bit 1 : enrngck -- > enable i/o range check bit 0 : foriord --> forces ldn to respond i/o read cr60, cr 61 (default 0x00, 0x00) these two registers select gp1 i/o base address [0x100:0xfff] on 1 byte boundaries. cr62, cr 63 (default 0x00, 0x00) these two registers select gp14 alternate function primary i/o base address [0x100:0xffe] on 2 byte boundaries; they are available as you setting gp14 to be an alternate function (general purpose address decode). cr64, cr 65 (default 0x00, 0x00) these two registers select gp15 alternate function primary i/o base address [0x100:0xfff] on 1 byte boundaries; they are available as you setting gp15 to be an alternate function (general purpose write decode). cr70 (default 0x00) bit 7-4 : reserved. bit 3-0 : these bits select irq resource for gp10 as you setting gp10 to be an alternate function (interrupt steering). cr71 (default 0x02, read only) bit 7-2 : reserved. bit 1 : irqlev -- > irq level = 1: high; = 0: low bit 0 : irqtyp e --> irq type = 1: level trigger; = 0: edge trigger cr72 (default 0x00) bit 7-4 : reserved. bit 3-0 : these bits select irq resource for gp11 as you setting gp10 to be an alternate function (interrupt steering). cr73 (default 0x02) bit 7-2 : reserved. bit 1 : irqlev -- > irq level = 1: high; = 0: low bit 0 : irqtype --> irq type = 1: level trigger; = 0: edge trigger
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 135 - revision 0.58 cre0 (gp10, default 0x01) bit 7-5 : reserved. bit 4 : irq filter select = 1 debounce filter enabled = 0 debounce filter bypassed bit 3 : select function. = 1 select alternate function : interrupt steering. = 0 select basic i/o function. bit 2 : reserved. bit 1 : polarity. = 1 invert. = 0 no invert. bit 0 : in/out selection. = 1 input. = 0 output. cre1 (gp11, default 0x01) bit 7-5 : reserved. bit 4 : irq filter select = 1 debounce filter enabled = 0 debounce filter bypassed bit 3 : select function. = 1 select alternate function : interrupt steering. = 0 select basic i/o function. bit 2 : reserved. bit 1 : polarity. = 1 invert. = 0 no invert. bit 0 : in/out selection. = 1 input. = 0 output. cre2 (gp12, default 0x01) bit 7-5 : reserved bit 4-3 : select function. = 00 select basic i/o function. = 01 select 1st alternate function : watching dog timer output. = 10 reserved = 11 r eserved bit 2 : reserved. bit 1 : polarity : 1 : invert, 0 : no invert bit 0 : in/out : 1 : input, 0 : output
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 136 - revision 0.58 cre3 (gp13, default 0x01) bit 7-5 : reserved. bit 4-3 : select function. = 00 select basic i/o function. = 01 select 1st alternate function : power led output. = 10 reserved = 11 reserved bit 2 : reserved. bit 1 : polarity : 1 : invert, 0 : no invert bit 0 : in/out : 1 : input, 0 : output cre4 (gp14, default 0x01) bit 7-5 : reserved. bit 4-3 : se lect function. = 00 select basic i/o function. = 01 select 1st alternate function : general purpose address decoder(active low when bit 1 = 0, decode two byte address). = 10 select 2nd alternate function : keyboard inhibit(p17). = 11 reserved bit 2 : reserved. bit 1 : polarity : 1 : invert, 0 : no invert bit 0 : in/out : 1 : input, 0 : output cre5 (gp15, default 0x01) bit 7-5 : reserved. bit 4-3 : select function. = 00 select basic i/o fu nction. = 01 general purpose write strobe(active low when bit 1 = 0). = 10 8042 p12. = 11 reserved bit 2 : reserved. bit 1 : polarity : 1 : invert, 0 : no invert bit 0 : in/out : 1 : input, 0 : output cre6 (gp16, default 0x01) bit 7-5 : reserved. bit 4-3 : select function. = 00 select basic i/o function. = 01 select 1st alternate function : watching dog timer output. = 1x reserved bit 2 : reserved. bit 1 : polarity : 1 : inver t, 0 : no invert bit 0 : in/out : 1 : input, 0 : output
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 137 - revision 0.58 cre7 (gp17, default 0x01) bit 7-4 : reserved. bit 4-3 : select function. = 00 select basic i/o function. = 01 select 1st alternate function : power led output. please refer to table c = 1x reserved bit 2 : reserved. bit 1 : polarity : 1 : invert, 0 : no invert bit 0 : in/out : 1 : input, 0 : output table c wdt_ctrl1* bit[1]* wdt_ctrl0* bit[3] wdt_ctrl1 bit[0] power led state 1 x x 1 hertz toggle pulse 0 0 x continuous high or low* 0 1 0 continuous high or low* 0 1 1 1 hertz toggle pulse *note: 1). regarding to the contents of wdt_ctr1 and wdt_ctrl0, please refer to crf3 and crf4 in logic device 8. 2). continuous high or low depends on the polarity bit of gp13 or gp17 configure registers. crf1 ( default 0x00) general purpose read/write enable* bit 7-2 : reserved bit 1 : = 1 enable general purpose write strobe = 0 disable general purpose write strobe bi t 0 : = 1 enable general purpose address decode = 0 disable general purpose address decode *note : if the logical device  s activate bit is not set then bit 0 and 1 have no effect.
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 138 - revision 0.58 10.10 logical device 8 (auxiliary i/o part ii) cr30 (default 0x00) bit 7-1 : reserved. bit 0 : = 1 activates the logical device. = 0 logical device is inactive. cr31 bit 7-2 : reserved. bit 1 : enrngck -- > enable i/o range check bit 0 : foriord --> forces ldn to respond i/o read cr60, cr 61 (default 0x00, 0x00) these two registers select gp2 & watch dog i/o base address [0x100:0xffe] on 2 byte boundaries. i/o base address + 1 : watch dog i/o base address. cr70 (default 0x00) bit 7-4 : reserved. bit 3-0 : these bits select irq resource for common irq of gp20~gp25 at logic device 9. cr71 (default 0x02) bit 7-2 : reserved. bit 1 : irqlev -- > irq level = 1: high; = 0: low bit 0 : irqtype --> irq type = 1: level trigger; 0: edge trigger cr72 (default 0x00) bit 7-4 : reserved. bi t 3-0 : these bits select irq resource for watch dog. cr73 bit 7-2 : reserved. bit 1 : irqlev -- > irq level = 1: high; = 0: low bit 0 : irqtype --> irq type = 1: level trigger; = 0: edge trigger cre8 (gp20, default 0x01) bit 7-5 : reserved. bit 4-3 : select function. = 00 select basic i/o function = 01 reserved = 10 select alternate function : keyboard reset (connected to kbc p20) = 11 reserved bit 2 : int en = 1 e nable common irq = 0 disable common irq bit 1 : polarity : 1 : invert, 0 : no invert bit 0 : in/out : 1 : input, 0 : output
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 139 - revision 0.58 cre9 (gp21, default 0x01) bit 7-5 : reserved bit 4-3 : select function. = 00 select basic i/o function = 01 reserved = 10 select 2nd alternate function : keyboard p13 i/o = 11 reserved bit 2 : int en = 1 enable common irq = 0 disable common irq bit 1 : polarity : 1 : invert, 0 : no invert bit 0 : in/out : 1 : input, 0 : output crea (gp22, default 0x01) bit 7-5 : reserved. bit 4-3 : select function. = 00 select basic i/o function. = 01 reserved = 10 select 2nd alternate function : keyboard p14 i/o. = 11 reserved bit 2 : int en = 1 enable common irq = 0 disable common irq bit 1 : polarity : 1 : invert, 0 : no invert bit 0 : in/out : 1 : input, 0 : output ?@?@ creb (gp23, default 0x01) bit 7-5 : reserved. bit 4-3 : select function. = 00 select basic i/o function = 01 reserved = 10 select 2nd alternate function : keyboard p15 i/o = 11 reserved bit 2 : int en = 1 enable common irq = 0 disable common irq bit 1 : polarity : 1 : invert, 0 : no invert bit 0 : in/out : 1 : input, 0 : output ?@
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 140 - revision 0.58 crec (gp24, default 0x01) bit 7-5 : reserved. bit 4-3 : select function. = 00 select basic i/ o function = 01 reserved = 10 select 2nd alternate function : keyboard p16 i/o = 11 reserved bit 2 : int en = 1 enable common irq = 0 disable common irq bit 1 : polarity : 1 : invert, 0 : no invert bit 0 : in/out : 1 : input, 0 : output cred (gp25, default 0x01) bit 7-4 : reserved. bit 3 : select function. = 1 select alternate function: gate a20(connect to kbc p21). = 0 select basic i/o function bit 2 : int en = 1 enable commo n irq = 0 disable common irq bit 1 : polarity : 1 : invert, 0 : no invert bit 0 : in/out : 1 : input, 0 : output crf0 (default 0x00) debounce filter enable or disable for general purpose i/o combined interrupt. the debounce filter can reject a pulse with 1ms width or less. bit 7-4 : reserved bit 3 : gp common irq filter select = 1 debounce filter enabled = 0 debounce filter bypassed bit 2-0 : reserved crf1 (reserved)
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 141 - revision 0.58 crf2 (default 0x00) watching dog timer time-out value. writing a non-zero value to this register causes the counter to load the value to watching dog counter and start to count down. if the bit2 and bit 1 are set, any mouse interrupt or keyboard interrupt happen will also cause to reload the non-zero value to watching dog counter and count down. read this register can not access watching dog timer time-out value, but can access the current value in watching dog counter. bit 7-0 : = 0x00 time-out disable = 0x01 time-out occurs af ter 1 minute = 0x02 time-out occurs after 2 minutes = 0x03 time-out occurs after 3 minutes ................................................ = 0xff time-out occurs after 255 minutes crf3 (wdt_ctrl0, default 0x00) watching dog timer control register #0 bit 7-4 : reserved bit 3 : when time-out occurs, enable or disable power led with 1 hz and 50% duty cycle output. = 1 enable = 0 disable bit 2 : mouse interrupt reset enable or disable = 1 watching dog timer is reset upon a mouse interrupt = 0 watching dog timer is not affected by mouse interrupt bit 1 : keyboard interrupt reset enable or disable = 1 watching dog timer is reset upon a keyboard interrupt = 0 watching dog timer is not affected by keyboard interrupt bit 0 : reserved. crf4 (wdt_ctrl1, default 0x00) watching dog timer control register #1 bit 7-4 : reserved bit 3 : enable the rising edge of keyboard reset(p20) to force time-out event, r/w* = 1 enable = 0 disable bit 2 : force watching dog timer time-out, write only* = 1 force watching dog timer time-out event; this bit is self-clearing. bit 1 : enable power led 1hz rate toggle pulse with 50% duty cycle , r/w = 1 enable = 0 disable bit 0 : watching dog timer status, r/w = 1 watching dog timer time-out occurred. = 0 watching dog timer counting *note : 1). internal logic provides an 1us debounce filter to reject the width of p20 pulse less than 1us. 2). the p20 signal that coming from debounce filter is ored with the signal generated by the force time-out bit and then connect to set the bit 0(watching dog timer status). the ored signal is self-clearing.
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 142 - revision 0.58 11. specifications 11.1 absolute maximum ratings parameter rating unit power supply voltage -0.5 to 7.0 v input voltage -0.5 to v dd +0.5 v rtc battery voltage v bat 4.0 to 1.8 v operating temperature 0 to +70 c storage temperature -55 to +150 c note: exposure to conditions beyond those listed under absolute maximum ratings may adversely affect the life and reliability of the device. 11.2 dc characteristics (ta = 0 c to 70 c, v dd = 5v 10%, v ss = 0v) parameter sym. min. typ. max. unit conditions rtc battery quiescent current i bat 2.4 ua v bat = 2.5 v acpi stand-by power supply quiescent current i bat 2.0 ma v sb = 5.0 v, all acpi pins are not connected. i/o 8t - ttl level bi-directional pin with source-sink capability of 8 ma input low voltage v il 0.8 v input high voltage v ih 2.0 v output low voltage v ol 0.4 v i ol = 8 ma output high voltage v oh 2.4 v i oh = - 8 ma input high leakage i lih +10 m a v in = v dd input low leakage i lil -10 m a v in = 0v i/o 6t - ttl level bi-directional pin with source-sink capability of 6 ma input low voltage v il 0.8 v input high voltage v ih 2.0 v output low voltage v ol 0.4 v i ol = 6 ma output high voltage v oh 2.4 v i oh = - 6 ma input high leakage i lih +10 m a v in = v dd input low leakage i lil -10 m a v in = 0v
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 143 - revision 0.58 11.2 dc characteristics, continued parameter sym. min. typ. max. unit conditions i/o 8 - cmos level bi-directional pin with source-sink capability of 8 ma input low voltage v il 0.3xv dd v input high voltage v ih 0.7xv dd v output low voltage v ol 0.4 v i ol = 8 ma output high voltage v oh 3.5 v i oh = - 8 ma input high leakage i lih + 10 m a v in = v dd input low leakage i lil - 10 m a v in = 0v i/o 12 - cmos level bi-directional pin with source-sink capability of 12 ma input low voltage v il 0.3xv dd v input high voltage v ih 0.7xv dd v output low voltage v ol 0.4 v i ol = 12 ma output high voltage v oh 3.5 v i oh = - 12 ma input high leakage i lih + 10 m a v in = v dd input low leakage i lil - 10 m a v in = 0v i/o 16u - cmos level bi-directional pin with source-sink capability of 16 ma, with internal pull-up resistor input low voltage v il 0.3xv dd v input high voltage v ih 0.7xv dd v output low voltage v ol 0.4 v i ol = 16 ma output high voltage v oh 3.5 v i oh = - 16 ma input high leakage i lih + 10 m a v in = v dd input low leakage i lil - 10 m a v in = 0v i/od 16u - cmos level open-drain pin with source-sink capability of 16 ma, with internal pull-up resistor input low voltage v il 0.3xv dd v input high voltage v ih 0.7xv dd v output low voltage v ol 0.4 v i ol = 16 ma output high voltage v oh 3.5 v i oh = - 16 ma input high leakage i lih + 10 m a v in = v dd input low leakage i lil - 10 m a v in = 0v
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 144 - revision 0.58 11.2 dc characteristics, continued parameter sym. min. typ. max. unit conditions i/o 12t - ttl level bi-directional pin with source-sink capability of 12 ma input low voltage v il 0.8 v input high voltage v ih 2.0 v output low voltage v ol 0.4 v i ol = 12 ma output high voltage v oh 2.4 v i oh = - 12 ma input high leakage i lih + 10 m a v in = v dd input low leakage i lil - 10 m a v in = 0v i/o 24t - ttl level bi-directional pin with source-sink capability of 24 ma input low voltage v il 0.8 v input high voltage v ih 2.0 v output low voltage v ol 0.4 v i ol = 24 ma output high voltage v oh 2.4 v i oh = - 24 ma input high leakage i lih + 10 m a v in = v dd input low leakage i lil - 10 m a v in = 0v out 8t - ttl level output pin with source-sink capability of 8 ma output low voltage v ol 0.4 v i ol = 8 ma output high voltage v oh 2.4 v i oh = - 8 ma out 12t - ttl level output pin with source-sink capability of 12 ma output low voltage v ol 0.4 v i ol = 12 ma output high voltage v oh 2.4 v i oh = -12 ma od 12 - open-drain output pin with sink capability of 12 ma output low voltage v ol 0.4 v i ol = 12 ma od 24 - open-drain output pin with sink capability of 24 ma output low voltage v ol 0.4 v i ol = 24 ma in t - ttl level input pin input low voltage v il 0.8 v input high voltage v ih 2.0 v input high leakage i lih +10 m a v in = v dd input low leakage i lil -10 m a v in = 0 v
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 145 - revision 0.58 11.2 dc characteristics, continued parameter sym. min. typ. max. unit conditions in c - cmos level input pin input low voltage v il 0.3 v dd v input high voltage v ih 0.7 v dd v input high leakage i lih +10 m a v in = v dd input low leakage i lil -10 m a v in = 0 v in cs - cmos level schmitt-triggered input pin input low threshold voltage v t- 1.3 1.5 1.7 v v dd = 5 v input high threshold voltage v t+ 3.2 3.5 3.8 v v dd = 5 v hystersis v th 1.5 2 v v dd = 5 v input high leakage i lih +10 m a v in = v dd input low leakage i lil -10 m a v in = 0 v in cu - cmos level input pin with internal pull-up resistor input low voltage v il 0.7xv dd v input high voltage v ih 0.7xv dd v input high leakage i lih +10 m a v in = v dd input low leakage i lil -10 m a v in = 0 v in ts - ttl level schmitt-triggered input pin input low threshold voltage v t- 0.5 0.8 1.1 v v dd = 5 v input high threshold voltage v t+ 1.6 2.0 2.4 v v dd = 5 v hystersis v th 0.5 1.2 v v dd = 5 v input high leakage i lih +10 m a v in = v dd input low leakage i lil -10 m a v in = 0 v in tsu - ttl level schmitt-triggered input pin wi th internal pull-up resistor input low threshold voltage v t- 0.5 0.8 1.1 v v dd = 5 v input high threshold voltage v t+ 1.6 2.0 2.4 v v dd = 5 v hystersis v th 0.5 1.2 v v dd = 5 v input high leakage i lih +10 m a v in = v dd input low leakage i lil -10 m a v in = 0 v
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 146 - revision 0.58 11.3 ac characteristics 11.3.1 fdc: data rate = 1 mb, 500 kb, 300 kb, 250 kb/sec. parameter sym. test conditions min. typ. (note 1) max. unit sa9-sa0, aen, dack , cs , setup time to ior ?? t ar 25 ns sa9-sa0, aen, dack , hold time for ior ?? t ar 0 ns ior width t rr 80 ns data access time from ior ?? t fd cl = 100 pf 80 ns data hold from ior ?? t dh cl = 100 pf 10 ns sd to from ior ?? t df cl = 100 pf 10 50 ns irq delay from ior ?? t ri 360/570 /675 ns sa9-sa0, aen, dack , setup time to iow ?? t aw 25 ns sa9-sa0, aen, dack , hold time for iow ?? t wa 0 ns iow width t ww 60 ns data setup time to iow ?? t dw 60 ns data hold time from iow ?? t wd 0 ns irq delay from iow ?? t wi 360/570 /675 ns drq cycle time t mcy 27 m s drq delay time dack ?? t am 50 ns drq to dack delay t ma 0 ns dack width t aa 260/430 /510 ns ior delay from drq t mr 0 ns iow delay from drq t mw 0 ns
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 147 - revision 0.58 11.3.1 ac characteristics, fdc continued parameter sym. test conditions min. typ. (note 1) max. unit iow or ior response time from drq t mrw 6/12 /20/24 m s tc width t tc 135/220 /260 ns reset width t rst 1.8/3/3. 5 m s index width t idx 0.5/0.9 /1.0 m s dir setup time to step t dst 1.0/1.6 /2.0 m s dir hold time from step t std 24/40/48 m s step pulse width t stp 6.8/11.5 /13.8 7/11.7 /14 7.2/11.9 /14.2 m s step cycle width t sc note 2 note 2 note 2 m s wd pulse width t wdd 100/185 /225 125/210 /250 150/235 /275 m s write precompensation t wpc 100/138 /225 125/210 /250 150/235 /275 m s notes: 1. typical values for t = 25 c and normal supply voltage. 2. programmable from 2 ms through 32 ms in 2 ms increments.
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 148 - revision 0.58 11.3.2 uart/parallel port parameter symbol test conditions min. max. unit delay from stop to set interrupt t sint 9/16 baud rate delay from ior reset interrupt t rint 100 pf loading 1 m s delay from initial irq reset to transmit start t irs 1/16 8/16 baud rate delay from iow to reset interrupt t hr 100 pf loading 175 ns delay from initial iow to interrupt t si 9/16 16/16 baud rate delay from stop to set interrupt t sti 1/2 baud rate delay from ior to reset interrupt t ir 100 pf loading 250 ns delay from ior to output t mwo 100 pf loading 200 ns set interrupt delay from modem input t sim 250 ns reset interrupt delay from ior t rim 250 ns interrupt active delay t iad 100 pf loading 25 ns interrupt inactive delay t iid 100 pf loading 30 ns baud divisor n 100 pf loading 2 16 -1 11.3.3 parallel port mode parameters parameter sym. min. typ. max. unit pd0-7, index , strobe , autofd delay from iow t1 100 ns irq delay from ack , nfault t2 60 ns irq delay from iow t3 105 ns irq active low in ecp and epp modes t4 200 300 ns error active to irq active t5 105 ns
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 149 - revision 0.58 11.3.4 epp data or address read cycle timing parameters parameter sym. min. max. unit ax valid to ior asserted t1 40 ns iochrdy deasserted to ior deasserted t2 0 ns ior deasserted to ax valid t3 10 10 ns ior deasserted to iow or ior asserted t4 40 ior asserted to iochrdy asserted t5 0 24 ns pd valid to sd valid t6 0 75 ns ior deasserted to sd hi-z (hold time) t7 0 40 m s sd valid to iochrdy deasserted t8 0 85 ns wait deasserted to iochrdy deasserted t9 60 160 ns pd hi-z to pdbir set t10 0 ns write deasserted to ior asserted t13 0 ns wait asserted to write deasserted t14 0 185 ns deasserted to write modified t15 60 190 ns ior asserted to pd hi-z t16 0 50 ns wait asserted to pd hi-z t17 60 180 ns command asserted to pd valid t18 0 ns command deasserted to pd hi-z t19 0 ns wait deasserted to pd drive t20 60 190 ns write deasserted to command t21 1 ns pbdir set to command t22 0 20 ns pd hi-z to command asserted t23 0 30 ns asserted to command asserted t24 0 195 ns wait deasserted to command deasserted t25 60 180 ns time out t26 10 12 ns pd valid to wait deasserted t27 0 ns pd hi-z to wait deasserted t28 0 m s
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 150 - revision 0.58 11.3.5 epp data or address write cycle timing parameters parameter sym. min. max. unit ax valid to iow asserted t1 40 ns sd valid to asserted t2 10 ns iow deasserted to ax invalid t3 10 ns wait deasserted to iochrdy deasserted t4 0 ns command asserted to wait deasserted t5 10 ns iow deasserted to iow or ior asserted t6 40 ns iochrdy deasserted to iow deasserted t7 0 24 ns wait asserted to command asserted t8 60 160 ns iow asserted to wait asserted t9 0 70 ns pbdir low to write asserted t10 0 ns wait asserted to write asserted t11 60 185 ns wait asserted to write change t12 60 185 ns iow asserted to pd valid t13 0 50 ns wait asserted to pd invalid t14 0 ns pd invalid to command asserted t15 10 ns iow to command asserted t16 5 35 ns wait asserted to command asserted t17 60 210 ns wait deasserted to command deasserted t18 60 190 ns command asserted to wait deasserted t19 0 10 m s time out t20 10 12 m s command deasserted to wait asserted t21 0 ns iow deasserted to write deasserted and pd invalid t22 0 ns
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 151 - revision 0.58 11.3.6 parallel port fifo timing parameters parameter symbol min. max. unit data valid to nstrobe active t1 600 ns nstrobe active pulse width t2 600 ns data hold from nstrobe inactive t3 450 ns busy inactive to pd inactive t4 80 ns busy inactive to nstrobe active t5 680 ns nstrobe active to busy active t6 500 ns 11.3.7 ecp parallel port forward timing parameters parameter symbol min. max. unit nautofd valid to nstrobe asserted t1 0 60 ns pd valid to nstrobe asserted t2 0 60 ns busy deasserted to nautofd changed t3 80 180 ns busy deasserted to pd changed t4 80 180 ns nstrobe deasserted to busy deasserted t5 0 ns busy deasserted to nstrobe asserted t6 80 200 ns nstrobe asserted to busy asserted t7 0 ns busy asserted to nstrobe deasserted t8 80 180 ns 11.3.8 ecp parallel port reverse timing parameters parameter symbol min. max. unit pd valid to nack asserted t1 0 ns nautofd deasserted to pd changed t2 0 ns nautofd asserted to nack asserted t3 0 ns nautofd deasserted to nack deasserted t4 0 ns nack deasserted to nautofd asserted t5 80 200 ns pd changed to nautofd deasserted t6 80 200 ns
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 152 - revision 0.58 11.3.9 kbc timing parameters no. description min. max. unit t1 address setup time from wrb 0 ns t2 address setup time from rdb 0 ns t3 wrb strobe width 20 ns t4 rdb strobe width 20 ns t5 address hold time from wrb 0 ns t6 address hold time from rdb 0 ns t7 data setup time 50 ns t8 data hold time 0 ns t9 gate delay time from wrb 10 30 ns t10 rdb to drive data delay 40 ns t11 rdb to floating data delay 0 20 ns t12 data valid after clock falling (send) 4 m s t13 k/b clock period 20 m s t14 k/b clock pulse width 10 m s t15 data valid before clock falling (receive) 4 m s t16 k/b ack after finish receiving 20 m s t17 rc fast reset pulse delay (8 mhz) 2 3 m s t18 rc pulse width (8 mhz) 6 m s t19 transmit timeout 2 ms t20 data valid hold time 0 m s t21 input clock period (6 - 12 mhz) 83 167 ns t22 duration of clk inactive 30 50 m s t23 duration of clk active 30 50 m s t24 time from inactive clk transition, used to time when the auxiliary device sample data 5 25 m s t25 time of inhibit mode 100 300 m s t26 time from rising edge of clk to data transition 5 t28-5 m s t27 duration of clk inactive 30 50 m s t28 duration of clk active 30 50 m s t29 time from data transition to falling edge of clk 5 25 m s
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 153 - revision 0.58 11.3.10 gpio, acpi, rom interface timing parameters symbol parameter min. max. unit t wgo write data to gpio update 300(note 1) ns t swp switch pulse width 16 msec t swe delay from switch events to psctrl , and from switch off event to smi 14 16 msec t porw smi pulse width (edge mode) 30 90 m s t powr delay from apci reg.1 write to smi inactive (level mode) - 25 nsec t rio delay from ria b , kclk, mclk, pwakin1, pwakin2 to psctrl - 25 nsec t rpo delay from phri pulse to psctrl - 25 sec t rto delay from phri pulse train to psctrl 0.125 0.190 sec t rinw phri width (high and low time) 10 - ns note : refer to microprocessor interface timing for read timing.
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 154 - revision 0.58 12. timing waveforms 12.1 fdc processor read operation wd write date aen sa0-sa9 cs twdd tar tdh tdf tra index tidx tidx index taw twd twa processor write operation terminal count reset ttc tc trst reset dma operation irq d0-d7 dack ior irq d0-d7 aen sa0-sa9 dack iow drive seek operation step dir tdst tstp tstd trr tr tfd tsc tmw (iow) tmr (ior) tma tam drq dack iow or ior tmcy taa tmrw tww twi tdw
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 155 - revision 0.58 12.2 uart/parallel trint star data bits (5-8) parity stop tsint star parity data (5-8) stop (1-2) star tir thr tsi thr thrs tsti sin (receiver input data) irq3 or irq4 ior (read receiver buffer register) serial out (sout) iow (write thr) irq3 or irq4 ior (read tir) receiver timing transmitter timing
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 156 - revision 0.58 12.2.1 modem control timing ack irq7 ri ior (read msr) iow (write mcr) rts,dtr cts,dsr dcd modem control timing x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x ?? ? ? ? tlid tlad printer interrupt timing ?? tsim ?? ?? ? ?? ? tmwo tmwo ?? ? tsim ? ?? ? ?? ? ?? trim trim tsim irq3 or irq4
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 157 - revision 0.58 12.3 parallel port 12.3.1 parallel port timing iow init, strobe autofd, slctin ack irq (spp) irq (epp or ecp) nfault (ecp) error (ecp) irq t1 t2 t3 t4 t5 t2 t4 pd<0:7>
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 158 - revision 0.58 12.3.2 epp data or address read cycle (epp version 1.9) write datastb t13 t16 t14 t17 t22 t18 t23 t24 t21 t25 t19 t15 t20 addrstb wait t26 t27 t28 pd<0:7> t1 iochrdy t3 t2 t4 t10 ior t5 t6 t7 t8 t9 sd<0:7> a<0:10>
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 159 - revision 0.58 12.3.3 epp dat a or address write cycle (epp version 1.9) t3 addrstb a10-a0 iow iochrdy write datast t1 t2 wait t4 t5 t6 t20 t19 t7 t9 t10 t11 t13 t15 t16 t17 t22 t8 t18 t21 t12 t14 sd<0:7> pd<0:7> pbdir
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 160 - revision 0.58 12.3.4 epp data or address read cycle (epp version 1.7) write datastb t13 t16 t14 t17 t22 t18 t23 t24 t21 t25 t19 t15 t20 addrstb wait t26 t27 t28 pd<0:7> t1 iochrdy t3 t2 t4 t10 ior t5 t6 t7 t8 t9 sd<0:7> a<0:10>
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 161 - revision 0.58 12.3.5 epp data or address write cycle (epp version 1.7) t3 addrstb a10-a0 iochrdy write datast t1 t2 iow wait t4 t5 t6 t20 t19 t7 t9 t10 t11 t13 t15 t16 t17 t8 t18 t22 t22 sd<0:7> pd<0:7> 12.3.6 parallel port fifo timing nstrobe busy > t3 >| >| >| t1 >| t2 t6 >| t5 t4 pd<0:7>
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 162 - revision 0.58 12.3.7 ecp parallel port forward timing t3 nautofd t1 t2 nstrobe busy t5 t7 t5 t6 t8 t4 pd<0:7> 12.3.8 ecp parallel port reverse timing t1 t5 nack nautofd t3 t6 t4 t5 t2 pd<0:7>
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 163 - revision 0.58 12.4 kbc 12.4.1 write cycle timing t1 t3 t7 t8 t9 t17 t18 active data in a2, csb wrb d0~d7 ga20 output port fast reset pulse rc fe command t5 12.4.2 read cycle timing data out active t2 t4 t6 t10 t11 a2,csb aen rdb d0-d7 12.4.3 send data to k/b clock (kclk) serial data (kdat) d0 d1 d2 d3 d4 d5 d6 d7 p stop start t12 t14 t13 t16 t19
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 164 - revision 0.58 12.4.4 receive data from k/b clock (kclk) serial data (t1) t15 t14 t13 t20 d0 d1 d2 d3 d4 d5 d6 d7 p stop start 12.4.5 input clock t21 clock clock 12.4.6 send data to mouse mclk mdat t25 t22 t23 t24 d0 d1 d2 d3 d4 d5 d6 d7 p stop bit start bit 12.4.7 receive data from mouse t29 t26 t27 mclk t28 mdat d0 d1 d2 d3 d4 d5 d6 d7 p stop bit start
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 165 - revision 0.58 12.5 gpio write timing diagram valid valid twgo previous state valid a0-a15 iow d0-7 gpio10-17 gpio20-25 12.6 master reset (mr) timing vcc mr tvmr 12.7 acpi 12.7.1 pansw trigger and psctrl timing tswp tswe tswp tswe edge: tporw level: tprl v oh v ol hi-z pansw psctrl smi wr v ol hi-z/ v oh v ol v oh v ol
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 166 - revision 0.58 12.7.2 ria , rib , klck, mclk, pwakin1, pwakin2 trigger and psctrl timing ria, rib kclk, mclk pwakin1, pwakin2 psctrl v oh v ol hi-z trio v ol 12.7.3 phri trigger and psctrl timing trinw trinw trto trpo phri v oh v ol hi-z v psctrl ol 13. application circuits 13.1 parallel port extension fdd 34 32 30 28 26 24 22 20 18 16 14 12 10 8 6 4 2 33 31 29 27 25 23 21 19 17 15 13 11 9 7 5 3 1 printer port 13 25 12 24 11 23 10 22 9 21 8 20 7 19 6 18 5 17 4 16 3 15 2 14 1 jp13 we2/slct wd2/pe mob2/busy dsb2/ack pd7 pd6 pd5 dch2/pd4 rdd2/pd3 step2/slin wp2/pd2 dir2/init trk02/pd1 head2/err idx2/pd0 rwc2/afd stb jp 13a ext fdc dch2 trk02 rdd2 dir2 wp2 mob2 rwc2 dsb2 head2 step2 wd2 we2 idx2 parallel port extension fdd mode connection diagram
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 167 - revision 0.58 13.2 parallel port extension 2fdd 33 31 29 27 25 23 21 19 17 15 13 11 9 7 5 3 1 printer port 13 25 12 24 11 23 10 22 9 21 8 20 7 19 6 18 5 17 4 16 3 15 2 14 1 jp13 we2/slct wd2/pe mob2/busy dsb2/ack pd5 dch2/pd4 rdd2/pd3 step2/slin wp2/pd2 dir2/init trk02/pd1 head2/err idx2/pd0 rwc2/afd stb jp 13a ext fdc dch2 trk02 rdd2 dir2 wp2 mob2 rwc2 dsb2 head2 step2 wd2 we2 idx2 34 32 30 28 26 24 22 20 18 16 14 12 10 8 6 4 2 dsa2 moa2 parallel port extension 2fdd connection diagram dsa2/pd7 moa2/pd6 13.3 four fdd mode g1 a1 b1 g2 a2 b2 1y0 1y1 1y2 1y3 2y0 2y1 2y2 2y3 dsa moa dsa dsb moa mob w83977f 74ls139 7407(2) mod moc mob dsc dsd dsb
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 168 - revision 0.58 14. ordering information part no. kbc firmware remarks w83977f-p phoenix multikey/42 tm without fir, 3rd uart w83977f-a amikey-2 tm without fir, 3rd uart W83977AF-p phoenix multikey/42 tm with fir, 3rd uart W83977AF-a amikey-2 tm with fir, 3rd uart 15. how to read the top marking example: the top marking of w83977f-a inbond w83977tf-a 719ab27039520 ? am. mega. 87-96 1st line: winbond logo 2nd line: the type number: w83977f-a 3rd line: the source of kbc f/w -- american megatrends incorporated tm 4th line: tracking code 709 a b 2 6519520 709 : packages made in '9 7 , week 09 a : assembly house id; a means ase, s means spil b : ic revision; b means version b, c means version c 2 : wafers manufactured in winbond fab 2 6519520 : wafer production series lot number
w83977f/ W83977AF p r e l i m i n a r y publication release date: march 1998 - 169 - revision 0.58 16. package dimensions (128-pin qfp) l l 1 detail f c e b 1 38 h d d 39 64 h e e 102 65 1.dimension d & e do not include interlead flash. 2.dimension b does not include dambar protrusion/intrusion 3.controlling dimension : millimeter 4.general appearance spec. should be based on final visual inspection spec. . note: seating plane see detail f y a a 1 a 2 128 103 5. pcb layout please use the "mm". symbol b c d e h d h e l y 0 a a l 1 1 2 e 7 0 0.08 1.60 0.95 17.40 0.80 17.20 0.65 17.00 14.10 0.20 0.30 2.87 14.00 2.72 0.50 13.90 0.10 0.10 2.57 0.25 min nom max dimension in mm 0.20 0.15 19.90 20.00 20.10 23.00 23.20 23.40 0.35 0.45 0.003 0 0.063 0.037 0.685 0.031 0.677 0.025 0.669 0.020 0.555 0.008 0.012 0.113 0.551 0.107 0.547 0.004 0.004 0.101 0.010 max nom min dimension in inch 0.006 0.008 7 0.783 0.787 0.791 0.905 0.913 0.921 0.014 0.018 headquarters no. 4, creation rd. iii science-based industrial park hsinchu, taiwan tel: 886-35-770066 fax: 886-35-789467 www: http://www.winbond.com.tw/ taipei office 11f, no. 115, sec. 3, min-sheng east rd. taipei, taiwan tel: 886-2-7190505 fax: 886-2-7197502 tlx: 16485 wintpe winbond electronics (h.k.) ltd. rm. 803, world trade square, tower ii 123 hoi bun rd., kwun tong kowloon, hong kong tel: 852-27516023-7 fax: 852-27552064 winbond electronics (north america) corp. 2730 orchard parkway san jose, ca 95134 u.s.a. tel: 1-408-9436666 fax: 1-408-9436668 please note that all data and specifications are subject to change without notice. all the trade marks of products and companies mentioned in this data sheet belong to their respective owners.


▲Up To Search▲   

 
Price & Availability of W83977AF

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X